5

I have some Unit tests, that when I try to run, it automatically creates Maven run/debug configuration, instead of JUnit (the integrated IDEA tab).

For some tests it does use JUnit run\debug configuration and manually - I can create both Maven and JUnit.

How do I make JUnit to be the default test runner ?

Nati
  • 1,034
  • 5
  • 19
  • 46

2 Answers2

2

The problems is that I had maven runner plugin installed, causing all my tests to run with Maven

Nati
  • 1,034
  • 5
  • 19
  • 46
0

You can use the maven option "-Dskip=true" to suppress the maven test execution, and you can add your own test configuration to the build process. This screenshot was taken form IntelliJ 15.0.2.

Update: maven option

edit run configuration output in "Run" view

JimHawkins
  • 4,843
  • 8
  • 35
  • 55