Nightwatch: Not skip TestSteps after assertion fails

Created on 25 May 2015  路  3Comments  路  Source: nightwatchjs/nightwatch

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)

enhancement

Most helpful comment

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

All 3 comments

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?

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

小ool!)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davecranwell picture davecranwell  路  3Comments

t00f picture t00f  路  3Comments

Pieras2 picture Pieras2  路  3Comments

sgleonardoopitz picture sgleonardoopitz  路  3Comments

dakebl picture dakebl  路  4Comments