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

Not skip TestSteps after assertion fails #473

Closed
MateuszJeziorski opened this issue May 25, 2015 · 3 comments
Closed

Not skip TestSteps after assertion fails #473

MateuszJeziorski opened this issue May 25, 2015 · 3 comments

Comments

@MateuszJeziorski
Copy link
Contributor

Now, by default, if some assertion fails, all remaining TestSteps are skipped. Would be nice to add flag (on test_settings level and be able to override on module level) that would change such behavior.

Ex. let's assume we have 5 TestSteps in one module.
Step1: works ok
Step2: throw exception
Step3: browser.verify fails
Step4: browser.assert fails
Step5: works ok

In current nightwatch version, steps 1-4 are executed and Step5 is skipped. After adding such flag ("continue_testSteps_after_failure"?) Step5 would be executed as well (Browser.verify does similar thing, but it doesn't break current TestStep execution)

@MateuszJeziorski MateuszJeziorski changed the title Not skip TestSteps after assertion failure Not skip TestSteps after assertion fails May 25, 2015
@beatfactor beatfactor added the bug label Jun 4, 2015
@jenny001
Copy link

In v0.7, do we need to set such flag to prevent the step being skipped? Are there any document or page to show how to prevent skipping step?

@beatfactor
Copy link
Member

Yes, it's documented under http://nightwatchjs.org/guide#test-settings. The settings is skip_testcases_on_fail.

@andymost
Copy link

Сool!)

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

No branches or pull requests

4 participants