Search code examples
cucumberjenkins-pluginsbddcucumber-junittestrail

Separate executions of BDD scenario outline examples in to different TestRail test cases (per example)


For reporting in to TestRail on automated BDD (cucumber-jvm) runs are using the Jenkins test rail plugin https://github.com/jenkinsci/testrail-plugin and we are getting false positives for test cases from scenario outlines.

The default implementation logs scenario outline example executions as multiple executions of the same test case in the same run. If the last example to run passed then the test case is passed for the run, even if all other examples actually failed.

Has anyone experienced this behaviour and did you find a way to change it so if any fail then the test case is failed or to list each example execution as a different test case?


Solution

  • I would report this behaviour to the authors of the plugin. The behaviour you describe is clearly very wrong.