Reputation: 956
We have 200+ features and 2000+ scenarios in our entire test suite. It works fine, but many step definitions are unused and we want to delete them.
Currently, it is very hard for us to manually try to remove step definition code and see whether doing so breaks anything. Is there a tool or utility that can identify which step definitions in a Java-Cucumber codebase are unused so they can be removed?
Upvotes: 0
Views: 1315
Reputation: 8695
IntelliJ's Cucumber plugin can search usages of individual step methods within the feature files. It is not really a bulk operation, but at least you can quickly see whether you can delete that step definition code, one by one, or not.
Upvotes: 0