Is there a nice way to have 2 distinct sets of instrument tests on android (I assumed it would be the same for plain unit tests)?
E.g. I have my normal set of Tests
A
. But sometimes I want to run a defined set of Tests
B
but not run the Tests from
A
. I tried utilizing
@LargeTest
etc and Test suites, but it didn't seem to work out nicely 💭 I'd love to not touch Tests
A
in any way.
Note: All tests are within one gradle module
t
tapchicoma
12/21/2021, 4:00 PM
consider using Junit tags and test filtering
j
jannis
12/22/2021, 9:05 AM
Not a bad idea, but our Android Tests still run with JUnit 4 😕
t
tapchicoma
12/22/2021, 9:07 AM
Check this docs - you could filter based on test class names
tapchicoma
12/22/2021, 9:07 AM
though JUnit5 tags is more flexible and convinient
j
jannis
12/22/2021, 9:11 AM
Didn't know about the filtering. I'll have a look at that - thanks for the hint ❤️
b
Benoît Liessens
01/02/2022, 2:16 PM
Is it an option to separate the tests in different sourceSets?