M2eclipse: Like "mvn test", but with a graphical interface?

We have a multi-module Maven installation with the pom.xml wizard, which includes all the others. Thus, mvn test from the root directory runs all of our unit tests with text output.

I can run Run / Run As / JUnit Test to run a single test class with a graphical test runner.

Question: How can I combine these two so that I can run all the tests run by mvn test , but with a graphical runner, for example, from the Run / Run As / JUnit test?

+4
source share
2 answers

Create an eclipse project with all of your modules like Maven Dependecies, and then create a JUnit Suite that includes all the tests. Eclipse JUnit Runner will run all declared tests if you run this package.

0
source

In Eclipse Juno, assuming your project is a Maven project, you can simply click on the project name in Project Explorer and select Run As ... jUnit test. Alternatively, you can get the same text that you get from mvn test by choosing Run As ... Maven Test

-1
source

Source: https://habr.com/ru/post/1340925/


All Articles