How to display the total number of JUnit tests in maven ? For some reason, there is no information about it anywhere.

    2 answers 2

    A standard plugin that is in parent Pom should show the number of tests. Maybe you run a build without tests, see the build log

      Use Cobertura, will display the total number of tests

       <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.7</version> <configuration> <instrumentation> <ignores> <ignore>com.example.code.*</ignore> </ignores> <excludes> <exclude>com/example/mycode/**/*.class</exclude> <exclude>com/example/**/*Test.class</exclude> </excludes> </instrumentation> </configuration> <executions> <execution> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> 
      • 2
        kapets, a trivial operation and I have to plug in the jigura-plugin for it - voipp
      • @voipp you can translate the project to a grad and write your own plugin) - Artem Konovalov