Search code examples
mavenmaven-surefire-plugin

Maven: Surefire --dry-run?


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

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


Solution

  • 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.

    UPDATE 2021: Note that this fork of maven-surefire has not been updated for 9 years.