Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Problem with Before/After annotated methods #26

Closed
tasomaniac opened this issue Feb 11, 2019 · 0 comments · Fixed by #29
Closed

Problem with Before/After annotated methods #26

tasomaniac opened this issue Feb 11, 2019 · 0 comments · Fixed by #29

Comments

@tasomaniac
Copy link
Collaborator

Cucumber Before/After methods are supported with pickle. When they are added into Steps files, those before and after methods are just called manually before and after all methods.

They are called just inline in test methods.

But this means that any exception occurring during test execution will not call after method because of the throwing.

Instead, Before/After methods should really be converted into jUnit Before and After methods in the generated code

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

Successfully merging a pull request may close this issue.

1 participant