Issue
I am trying to run ONE specific espresso test class on firebase test labs through command line. When I try to run the command below, all the test classes in the androidTest directory gets executed.
gcloud firebase test android run \
--type instrumentation \
--app app-fred-stage-debug.apk \
--test app-fred-stage-debug-androidTest.apk \
--device model=Nexus6,version=21,locale=en,orientation=portrait
How do I specify the one test class I want to run on firebase test labs?
TIA
Solution
The documentation suggests that you can use the --test-targets flag to run a single test:
For example, you can use the --test-targets flag to test just one class used by your test APK, or to test just one method from a class used by your test APK. To learn more, see
gcloud firebase test android run.
That links you to the documentation for gcloud firebase test, which shows you the options for how to specify your specific tests.
Answered By - Doug Stevenson
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.