Run tests with Maven using IDE controls

Answered

Hello,

I'm looking for solution which could allow to launch JUnit tests with Maven, but using Idea controls. For instance, it would be quite handy to open some class and run its particular test method (or the whole class), but this method should be launched using Maven, not Idea default launcher (as far as I can judge, it is JUnitStarter)

I'm aware about running Maven goals and about JUnit default configuration, but I didn't manage to find how to tell Idea to pass to command line launched test properly. Maybe there is support of some sort of expressions?

mvn -Dtest=${test.name} test

Thanks!

0
1 comment

It's not possible. Feature request with the use case is welcome at https://youtrack.jetbrains.com/issues/IDEA. Describe why you need this feature and why using IntelliJ IDEA test runner is not an option.

0

Please sign in to leave a comment.