Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
DESCRIBE THE ISSUE IN DETAIL:
I would like to write a test rule that wraps the macrobenchmark rule and does further postprocessing on the file that is output on device rather than via adb pull to grab the file.
In order to do this, according to this page:
I'd have to either parse logcat to find the file (because location varies depending on OS version) or I would have to
STEPS TO REPRODUCE:
1. add a macrobenchmark rule to an E2E test e.g. with @get:Rule val benchmarkRule = MacrobenchmarkRule()
2. try to write a rule that wraps this testrule to get the output so I can process it on device and send results to a test infra server:
```
override fun apply(base: Statement, description: Description): Statement {
// Grant external storage, as it may be needed for test output directory.
return RuleChain
.outerRule(benchmarkRule)
.around(::applyInternal)
.apply(base, description)
}
```
3. I would like to get to the path of the output file via benchmarkRule.outputFile
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
N.A.
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
N.A.
Studio Build: N.A.
Version of Gradle Plugin: N.A.
Version of Gradle: N.A.
Version of Java: N.A.
OS: N.A.