问题
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