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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Rerun only failing specs of previous execution #27905

Closed
SwardCoder opened this issue Sep 26, 2023 · 3 comments
Closed

Ability to Rerun only failing specs of previous execution #27905

SwardCoder opened this issue Sep 26, 2023 · 3 comments
Labels
stale no activity on this issue for a long period

Comments

@SwardCoder
Copy link

What would you like?

Providing the Ability of Rerun to only Failing test cases of Previous Execution will help us a
as doing it manually will be time time-consuming process as we need to collect names/paths of failing specs and we should be able to run them manually by using --spec command

at least if this facility is provided in paid subscriptions it will be more useful in saving infrastructure costs to run test cases

We have a situation to run 500 specs and it takes around 4 hrs to complete when using 6 VMs in Archestrization finally if we find any failing test cases (which are not flaky test failures) for example 50
then we will ask Developers to fix them and then instead of spending 4 hours again we will run only these 50 instead,

if Cypress provides this facility by saving the details of failing specs in Memory and upon second execution if it prompts do you want to run only failures of the previous run and if it Executes it helps us

Maybe it's not in the scope of Cypress Cloud but yes it can send some output kind of thing to CI/CD surely this kind of feature will help us

Why is this needed?

No response

Other

No response

@ryanpei
Copy link
Contributor

ryanpei commented Sep 27, 2023

@SwardCoder which CI are you using?

Also, please look into Spec Prioritization and Auto Cancellation. Used together, they ensure that, on the next run, the failed specs will run first and then, depending on your Auto Cancellation threshold, the run stops after X failures. This way, you can ensure that you're only going to see the whole test suite run again once the failures are fixed. And you do want to make sure no other tests were failed because of the "fix", so it's recommended to re-run everything at the end anyway.

@jennifer-shehane jennifer-shehane changed the title Ability to Rerun only failing test cases of previous execution Ability to Rerun only failing specs of previous execution Sep 29, 2023
@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label Apr 3, 2024
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale no activity on this issue for a long period
Projects
None yet
Development

No branches or pull requests

4 participants