Issue
I write UI-tests on Espresso library for my custom components. I have separate classes, that extends ActivityInstrumentationTestCase2<MyActivityDebug>
, for every component, for example: CheckBoxTest
, EditTextTest
, SelectorText
... Now i run tests separately too. Help me, how can i run all tests one time from one place for all classes?
Solution
You can define a Suite
/**
* Runs all unit tests.
*/
@RunWith(Suite.class)
@Suite.SuiteClasses({MyTest1.class , MyTest2.class, MyTest3.class})
public class InstrumentationTestSuite {}
Then in AndroidStudio you can run with gradle or setting a new configuration like:
Answered By - Gabriele Mariotti
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.