是否有一个Maven插件列出了多模块项目中的所有JUnit测试 [英] Is there a Maven plugin listing all JUnit tests in a multi module project

查看:215
本文介绍了是否有一个Maven插件列出了多模块项目中的所有JUnit测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有maven插件-或非maven工具-可以浏览多模块项目并以可用形式向我返回所有现有JUnit测试用例的列表(理想情况下按模块显示)?

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?

我希望能够处理该列表并将测试分散到多个主机上. 我查看了surefire文档,但感到惊讶的是它似乎无法做到这一点.

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.

推荐答案

Maven项目中有一个target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst.

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

您可以使用 GMavenPlus插件

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

另一种选择是开发自己的Maven插件也是一样.

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

这篇关于是否有一个Maven插件列出了多模块项目中的所有JUnit测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆