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
If an after hook invoke the method scenario.write(), the text is written as an entry in the node 'output' of the last step instead of the hook step in 'after' node
Expected Behavior
Given the following code:
@After
public void endScenario(Scenario scenario) {
scenario.write("test")
}
Now when #1035 has been merged, the 2.0.0-SNAPSHOT version from the master branch (with the groupId io.cucumber), the Json Formatter handles writes from the after hooks correctly.
Summary
If an after hook invoke the method scenario.write(), the text is written as an entry in the node 'output' of the last step instead of the hook step in 'after' node
Expected Behavior
Given the following code:
The cucumber json report should be:
Current Behavior
Context & Motivation
Using an external tool to create an html report, I expect the text to be associated to the hook, not the las step
Your Environment
The text was updated successfully, but these errors were encountered: