-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
numShards, shardIndex support #270
Comments
I deployed a new dependencies {
androidTestImplementation("de.mannodermaus.junit5:android-test-core:1.3.1-SNAPSHOT")
androidTestRuntimeOnly("de.mannodermaus.junit5:android-test-runner:1.3.1-SNAPSHOT")
} |
Hello @mannodermaus . Thanks for working on it. I have tests both of junit4 and junit5. For the shard that only contains junit4 tests, the test result considered as failed even if all tests are passed. (As you can see the screen shot) Here's the part of XML file that exported from the result. Each tests are passed but in the testSuite tag, the result is failed. I guess it’s why the result shown as failed in the android studio. I created the sample project that can reproduce the issue. In the project problematic numShards and shardIndex value is assigned already, so if you run the whole tests then you will see the issue. Because of it, my project always fails on the Firebase Testlab. I would really appreciate it if you could help me. |
The sharding feature that's available in AndroidJunitRunner is not working in AndroidJunit5Runner.
Is there any way to achieve it? I tried to do it through the ExecutionCondition extension, but it makes the test "ignored". I want to make the runner doesn't recognize tests that aren't included in the specific sharding.
I briefly changed the code by refering the AndroidJunitRunner code and it's working well. But I am not sure it's the right way to do it.
The text was updated successfully, but these errors were encountered: