Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Skip remaining tests after failure of first test #30545

Closed
MatthewIceland opened this issue Apr 25, 2024 · 1 comment
Closed

[Feature]: Skip remaining tests after failure of first test #30545

MatthewIceland opened this issue Apr 25, 2024 · 1 comment

Comments

@MatthewIceland
Copy link

馃殌 Feature Request

An easy command to add to a script that enables all remaining tests to be skipped if the first test has failed

Example

I am testing a website. My first test is to confirm that the page has loaded. Subsequent tests involve updating personal details, navigating the site etc.

If the website hasn't loaded in the first test, I do not want the remaining tests to run. I would assume that all of the tests will fail and don't want to be waiting for them to timeout before they fail.

Motivation

If the user is running a suite of tests it will save a significant amount of time by simply notifying them that the first test has failed and, therefore, this issue should be investigated before any further testing is executed. It saves the user looking through failed test results when they only need to identify the one central issue identified in the first test.

@pavelfeldman
Copy link
Member

You can achieve this by using project dependencies. Load your page in the 'smoke' project and if it won't pass, the other projects that depend on it won't run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants