You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a cucumber scenario fails in a @Before method then serenity reporter should report it as failed instead of ignored. @wakaleo fixed this issue back in 2018 and it somehow reappeared so I found his fix from back then which need a small change.
I think that in the method
if (Status.FAILED.equals(event.getResult()) && noAnnotatedResultIdDefinedFor(event)) {
should be changed to
if (Status.FAILED.equals(event.getResult().getStatus()) && noAnnotatedResultIdDefinedFor(event)) {
so that if a cucumber before step fails then serenity reporter also reports the scenario as failing instead of ignored.
And probably a test case created so that the intended behavior of serenity reporter reporting on failing @Before methods is verified.
I realize this submitted issue could be a pull request, if my suggested fix gets in, then my next contribution might be an actual pull request... ;)
The text was updated successfully, but these errors were encountered:
When a cucumber scenario fails in a
@Before
method then serenity reporter should report it as failed instead of ignored.@wakaleo fixed this issue back in 2018 and it somehow reappeared so I found his fix from back then which need a small change.
I think that in the method
the line
should be changed to
so that if a cucumber before step fails then serenity reporter also reports the scenario as failing instead of ignored.
And probably a test case created so that the intended behavior of serenity reporter reporting on failing
@Before
methods is verified.I realize this submitted issue could be a pull request, if my suggested fix gets in, then my next contribution might be an actual pull request... ;)
The text was updated successfully, but these errors were encountered: