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

Executing a test with the --dry-run option does not skip the @Before or @After annotations #424

Closed
restagner opened this issue Nov 14, 2012 · 3 comments

Comments

@restagner
Copy link

While executing a test in 'dry run' mode, either from the command line using --dry-run or from within a JUnit class using the @Cucumber.Options (dryRun = true), the code contained within the @before and @after annotations is executed.

@jacquesbeukes
Copy link

Same thing happens with Background: blocks

@wjpowell
Copy link
Contributor

This is happening on hooks because there is no check for the dry run option before running hooks. I'll fix this in the next few days. I'm not sure why this would happen on backgrounds since backgrounds run steps with the same method as scenario steps.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants