- Issue created by @murz
Now if the Nightwatch test fails to install Drupal using browser.drupalInstall()
from the function before(browser)
, it still continues to execute the test functions, which lead to not very clear errors.
It's better to stop running the whole test file, if the Drupal installation fails.
1. Make a profile that throws an exception on Drupal Install.
2. See the error in the Nightwatch output:
✖ NightwatchAssertError
Command failed: php ./scripts/test-site.php install --install-profile "commercetools_content_test_profile" --base-url http://localhost/web --db-url mysql://drupaltestbot:drupaltestbotpw@database/mysql --json
3. See that after this error all the tests contained in this file, still trying to execute, producing different errors because the Drupal installation is broken.
We should stop processing all the tests in the current file, if the function before(browser)
throws an error.
Active
11.0 🔥
javascript