This is a TestNG copy-paste version of the JUnit Calculator example project.
If you find its TestNG report is not idiomatic, consider making a contribution to improve Cucumber JVM TestNG Support.
Three runner classes examplify the available alternatives:
- Let the runner inherit AbstractTestNGCucumberTests. Each feature will then be executed as a separate TestNG test.
- If the runner need to have another base class:
- Either use the simple alternative and let the runner declare one test method that calls TestNGCucumberRunner.runCukes(). Then all features will be executed in the one and only TestNG test.
- Or let the runner use the same structure as AbstractTestNGCucumberTests to make each feature run as a separate TestNG test.
Note Please keep code base of this project up-to-date