Running all tests except the JUnit category in IntelliJ

Basically I only use JUnit categories for non-unit tests which I don't want to run as part of a test suite. In NUnit, I could use Explicit, but the only thing I found comparable in JUnit is the category. It's easy to exclude the category in gradle, but I can't figure out how to do this with the IntelliJ tester. I can see how to run tests belonging to a category, but not exclude them.

+3
intellij-idea unit-testing junit


source to share


No one has answered this question yet

Check out similar questions:

1898
How do you assert that a specific exception is thrown in JUnit 4 tests?
258
How do I run all Python test cases in a directory?
121
JUnit confusion: use 'extends TestCase' or '@Test'?
88
JUnit test with dynamic test count
63
How do I run JUnit tests by category in Maven?
12
How can I run all JUnit unit tests except those ending with "IntegrationTest" in my IntelliJ IDEA project using the integrated test runner?
6
How to group / categorize a large number of JUnit tests
five
Run jUnit tests using @category spring and gradle
five
How do I specify @category on a test issue in gradle?
2
How do I run a jUnit test in a specific folder along the gradient?



All Articles
Loading...
X
Show
Funny
Dev
Pics