-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Ignore by default all tests with org.junit.Ignore annotation #186
Comments
@CristianGM Can you reproduce it on sample project?
on latest develop branch it works as expected |
We also have the same problem, it doesn't hang with blacklisted |
@tagantroy |
I had the same issue with the annotation on the method and the class. |
https://github.com/Malinskiy/marathon/tree/reproduce_problem_with_Ignore_on_class.
I also found this issue jaredsburrows/gradle-spoon-plugin#47 |
We're going to check the Ignored tests after parsing all the tests from vendor module during the init phase and we're going the create a fake report for these, because real test runner doesn't behave as expected. |
I've checked the implementation of the Android test runner and found other ways to ignore the test but using the @Suppress for example will not report the test at all The problematic bit in the runner is checking if something is a test or not. The logic is that it's a test if there are no children in object tree and that usually happens, but in this case this condition is also true for the whole class and then the parameterized logic crashes because it assumes that it's input is CLASS#METHOD but in reality it's just CLASS and hence NPE for the method part |
The reason why it is considered a test is because the runner implementation that is used in case of ignored class is IgnoredClassRunner compared to the usual Suite. The difference is that Suite actually returns children for the class node hence the isTest passes properly |
Tests annotated with ignore will cause an infinite loop if not ignored, to prevent that we could ignore them by default on the Gradle Plugin.
The text was updated successfully, but these errors were encountered: