Maven: Surefire --dry-run?

浪尽此生 提交于 2019-12-07 09:55:03

问题


Is there some way to dry-run surefire? Something which would list wich tests would run, without running them.

The goal is, to know which tests (would) run in JBoss AS7 testsuite under certain config.


回答1:


There's a change by Janinko at https://github.com/janinko/maven-surefire/tree/feature/dryrun Which adds this option:

-Dtest.dryrun=true

Hopefully it will get to upstream.




回答2:


No. If you want to verify you are running a subset of your tests under a particular configuration, you will have to do it after the fact via a surefire report or similar.



来源:https://stackoverflow.com/questions/8012686/maven-surefire-dry-run

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!