Fixed
Status Update
Comments
cc...@google.com <cc...@google.com> #2
Yigit, do you have time to fix it?
reemission of the same liveData is racy
reemission of the same liveData is racy
ml...@gmail.com <ml...@gmail.com> #3
yea i'll take it.
ap...@google.com <ap...@google.com> #4
Thanks for the detailed analysis. This may not be an issue anymore since we've started using Main.immediate there but I' not sure; I'll try to create a test case.
Description
Component used: androidx.benchmark:benchmark-macro
Version used: 1.1.0-alpha12
Since most of the UI interactions will happen in target package, developers need to specify it when manipulating the UI, e.g.:
device.findObject(By.res(TARGET_PACKAGE, "some_id"))
Can we make the
packageName
inMacrobenchmarkScope
public? Devs wouldn't need to defineTARGET_PACKAGE
constant, since it's needed to pass intomeasureRepeated
(the same as we do withdevice
)Also, it can be helpful to add
currentIteration
to the scope, so it's as well accessible when running the test. Let's say for example, each iteration opening different item from a list. Or simply logging which iteration is running.This can be done manually, but again, the information is there, just to add it to the scope.