-
Notifications
You must be signed in to change notification settings - Fork 119
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
[Feature request] Include tests marked with @org.junit.Ignore in JUnitReport.xml #629
Comments
Here's an example of an Android unit test results XML with one test marked with
|
@plnice Thanks for pointing this out! @bootstraponline, current flank implementation filters tests annotated with My proposal is to introduce new flag, Let me know what you think. |
@pawelpasterz I think Flank already has many flags, ideally we'll look to change default behavior when possible. For this specific use case, it's probably best to always include ignored tests in the JUnit XML. I believe JUnit does this by default for local runs. |
Sounds like a plan, thanks for answer |
We often use
@org.junit.Ignore
annotation to mark tests we plan to fix later. When we are doing multiple changes in the specific area and we predict that some other changes will happen very soon and will break the tests again, for us it's better to mark the test as ignored for some time and go back to it when all the changes are introduced.Such tests are (correctly) not taken into account when running test suite on FTL. However, we'd like to include ignored tests in
JUnitReport.xml
so that our CI environment (when the XML report gets parsed) can present ignored tests. In such way we can track which tests were ignored in the given test run.The end result could be similar to how regular Android unit tests report looks like - sometimes we also have some unit tests marked with
@Ignore
, they land in the XML report and are correctly parsed by the CI.The text was updated successfully, but these errors were encountered: