How can I view the IntelliJ IDEA "Test Runner" tab when running tests with maven?

In IntelliJ IDEA, when I usually run unit test, I got a dialog box that shows me the progress of the test and allows me to easily pass the test results. However, I use maven for my normal build process and want to run my unit tests with maven. However, when I run my tests from maven instead of the default “Ide” Make process, the Test Runner tab does not appear and I have to manually open the surefire report files to find out what went wrong.

So, briefly: "How to enable the bright" Test Runner "tab for unit test to run from the maven assembly?"

+5
source share
2 answers

I recently realized how close I think I can answer. The test itself should be run from. But I can configure IntelliJ IDEA to start building through maven .

Edit Run Debug Configuration

As you can see in the Red Highlighted Box, I selected the saved maven assembly configuration to run it. In order not to duplicate tests, and simplify a simple simple type construct mvn package -DskipTests. I'm still wondering if the tests are different from what IntelliJ IDEA runs them compared to the maven-surefire-plugin , but now I at least know that the build process is the same.

+1
source

You can run tests using the maven project window in IntelliJ View - Tool Windows - Maven Projects

.

.

https://github.com/destin/maven-test-support-plugin .

, Project, " " ( maven)

.

+3

All Articles