nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.85k stars 1.34k forks source link

Run is stoped after a fail/error in any before() method #4284

Open olkaz opened 1 month ago

olkaz commented 1 month ago

Description of the bug/issue

When run get a NightwatchAssertError (or any other fail/error) in before() method the all run a stopped. No report is created.

I'm expecting that only failed test will be skipped, not an entire suite.

Steps to reproduce

Clone an example project Run npm install run >> npx nightwatch ./test/mobile-app-tests/ --env app.android.real --reporter=html --open

Sample test

Check an example project

Command to run

npx nightwatch ./test/mobile-app-tests/ --env app.android.real --reporter=html --open

Verbose Output

No response

Nightwatch Configuration

Check an example project

Nightwatch.js Version

3.8.0

Node Version

No response

Browser

No response

Operating System

No response

Additional Information

Example test > https://github.com/pretorian121/test-proj

Problem in a discord chat > https://discord.com/channels/618399631038218240/935468415731253258/1298987835650605206