You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I tried to use the 'afterEach' hook in a test suite, but when using the --testcase argument, it is not invoked. Console output is provided below a simple test case.
When using nightwatch --test ./tests/test.js, the output is as expected :
Starting selenium server... started - PID: 17224
[Test] Test Suite
=================
Running: testcase1
before
beforeEach
testcase1
✔ Passed [ok]: true ok
afterEach
OK. 1 assertions passed. (2.519s)
Running: testcase2
beforeEach
testcase2
✔ Passed [ok]: true ok
afterEach
OK. 1 assertions passed. (2ms)
after
OK. 2 total assertions passed. (3.734s)
But, when specifying the testcase to run, ie. nightwatch --test ./tests/test.js --testcase 'testcase1', the afterEach method is not invoked :
Starting selenium server... started - PID: 11836
[Test] Test Suite
=================
Running: testcase1
before
beforeEach
testcase1
✔ Passed [ok]: true ok
OK. 1 assertions passed. (2.533s)
after
Is there something I am missing ?
The text was updated successfully, but these errors were encountered:
Hi,
I tried to use the 'afterEach' hook in a test suite, but when using the
--testcase
argument, it is not invoked. Console output is provided below a simple test case.Code here :
When using
nightwatch --test ./tests/test.js
, the output is as expected :But, when specifying the testcase to run, ie.
nightwatch --test ./tests/test.js --testcase 'testcase1'
, theafterEach
method is not invoked :Is there something I am missing ?
The text was updated successfully, but these errors were encountered: