Is there a Maven plugin listing all JUnit tests in

2019-06-23 09:27发布

问题:

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.

回答1:

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.



标签: maven junit