For Cucumber JVM users, you may use the 'unused' plugin. In cucumber.properties
, define
cucumber.execution.dry-run=true
cucumber.plugin=unused:target/unused.log
After running the test suite, there should be a file unused.log
in the target folder that lists all unused step definitions.