Nightwatch: skip_testcases_on_fail = false

Created on 19 Aug 2015  路  7Comments  路  Source: nightwatchjs/nightwatch

When my test fails it will not run the next tests function
For example, the next 2 test function are in the same js file and not related to each other:
"Test number 1": function (browser){
line 1
line 2
line 3
... }
"Test number 2": function (browser){ ... }

If Test number 1 fails it will not run Test Number 2.

I tried to put "skip_testcases_on_fail": false.
In this case, if the test fails on 'line 1' it will also run line 2+3 (which is not good for me) and then will go to 'Test number 2'.

Is there a way to go to next test step without running the rest of the test that already fail.

bug

Most helpful comment

0.9.19 still has this problem

All 7 comments

+1 for this issue.

For the following:
"end_session_on_fail": true,
"skip_testcases_on_fail": false
assertion fail inside one test case will not cause this case to end, but will continue until all assertions are finished and then start next test case.

Expected output:
when line 1 fails, "Test number 1" is marked as failed and neither line 2 nor line 3 are being executed. After that "Test number 2" is started.

Yeah it shouldn't run the remainder of the failing test case. We'll have a fix out for that soon (currently on master if you want to check it out).

This is fixed now as of 0.8.0

I am using 0.9.8 and it keeps running the test cases... Anyone else having this issue?

0.9.19 still has this problem

This is still an issue with version 1.0.6, the test unnecessarily execute all the lines of code within a test even if there is assertion failure in previous lines I had tried by putting -
"skip_testcases_on_fail": false,
"end_session_on_fail":true,
But no luck.

i am also facing same problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MateuszJeziorski picture MateuszJeziorski  路  3Comments

davidlinse picture davidlinse  路  4Comments

Pieras2 picture Pieras2  路  3Comments

chaseconey picture chaseconey  路  4Comments

gary5 picture gary5  路  4Comments