Java – JUnit @ ignore all other tests (@ ignoreother?)
•
Java
I'm testing with JUnit and sometimes debugging my code - I want to run only one @ test my @ runwith (arquillian. Class) test class (temporarily) At present, I am adding @ ignore for all other tests and want to know if there is something like @ ignoreother
Is there a better solution to ignore all other tests?
Solution
Test rules (JUnit 4.7) will help For example, you can write a rule that ignores all @ test methods except one with a specific name
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码