Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Maven plugin listing all JUnit tests in a multi module project

Tags:

junit

maven

Is there any maven plugin - or non-maven tool - out there which would browse a multi-modules project and return me a list of all existing JUnit testcases (ideally presented per module) in a usable form?

I want to be able to work on that list and distribute my tests across multiple hosts. I checked surefire documentation and I'm surprised that it doesn't seem to be able to do that.

like image 530
Julien Avatar asked Sep 18 '15 03:09

Julien


1 Answers

There's a .../target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst in a Maven project.

You can use the GMavenPlus Plugin and Walking the File Tree to gather these files and put their content where you want.

Another option is to develop an own Maven plugin that does the same.

like image 130
Gerold Broser Avatar answered Nov 15 '22 04:11

Gerold Broser