Is there a nice way to have 2 distinct sets of ins...
# gradle
j
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
consider using Junit tags and test filtering
j
Not a bad idea, but our Android Tests still run with JUnit 4 😕
t
Check this docs - you could filter based on test class names
though JUnit5 tags is more flexible and convinient
j
Didn't know about the filtering. I'll have a look at that - thanks for the hint ❤️
b
Is it an option to separate the tests in different sourceSets?