Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cucumber 6.2.2 not listing all the failed scenarios at the end of tests run #105

Closed
rhande-mdsol opened this issue Jul 10, 2020 · 2 comments

Comments

@rhande-mdsol
Copy link

rhande-mdsol commented Jul 10, 2020

Describe the bug
When one or more scenarios failed, we don't get a list of failed scenarios:
like

Failed scenarios:
classpath:features/myfile.feature:12# <my_scenario_description 1>
classpath:features/myfile.feature:15# <my_scenario_description 2>

To Reproduce
Run feature file with a failing test.

Expected behavior
Failed scenarios should be listed in the end, as it helps developers to identify quickly especially when there is a huge number of tests.
** cucumber Version being used**

"io.cucumber" % "cucumber-core" % "6.2.2"
"io.cucumber" % "cucumber-junit" % "6.2.2"
"io.cucumber" %% "cucumber-scala" % "6.2.2"

The same thing was working when the cucumber version was 5.7.0.

I am not sure if this change was introduced on purpose in version 6 or above. Please suggest if this can be achieved by any configuration change (such as CucumberOptions).

Thanks in advance.

@mpkorstanje
Copy link
Contributor

When using JUnit you have to use @CucumberOptions(plugin = {"summary"}) to make Cucumber report on failures. However I would expect your JUnit integration to report on the failures. Cucumber no longer reports failures by default because these reports would inter-leaf with the output of other tooling.

@rhande-mdsol
Copy link
Author

rhande-mdsol commented Jul 11, 2020

Thanks for the help @mpkorstanje . This plugin = {"summary"} helps to address the particular problem. I am closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants