Java – JUnit @ ignore all other tests (@ ignoreother?)

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
分享
二维码
< <上一篇
下一篇>>