bahmutov / bahmutov/cypress-repeat

[Feature] - Ability to retry a full run based in a results file in a pipeline

Open
#47 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
39
Forks
12
PR merge metrics
No merged PRs in 30d

Description

The idea is to the plugin to repeat a full run based in a results file.

Steps would be something like this:
- Cypress runs normally all the test files as usual.
- At the end, a json or something like that is created containing all the test cases results (something very simple like the test title with the status).
- So, we can do something out of Cypress in the between, like a database restore, an evn deployment or something like that.
- Therefore, we can invoke a "cypress run" command again, but this time the plugin will verify if the file mentioned above was created, and if that's the case, only those test cases that failed or passed will run. This would be something like the --only-failures from the rspec test runner in Ruby, for example.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the cypress-repeat plugin and how it invokes Cypress runs. Define how a results JSON file records test titles and statuses, how a later run selects the requested cases, and how the behavior is verified across the two-run workflow described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
cypress, javascript
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.