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.
The idea is to the plugin to repeat a full run based in a results file.
Steps would be something like this: