Comments (4)
Each rerun is triggered in the same thread at the point of failure so knowing 80% of failures without having run all scenarios first would not be possible, as it currently stands.
My suggestion would be defer the rerun of failed scenarios once all scenarios are executed.
- Set rerunFailedScenarios to 'false' in the runner.
- In you CI tool, determine whether to rerun the failed scenarios based on your failure threshold.
- Execute the rerun file (using Cucumber) which is located in the target directory
(Note. Courgette-JVM produces a single rerun text file listing all failed scenarios.)
from courgette-jvm.
I can upgrade Courgette-JVM to defer the rerun of failed scenarios once all test are complete. Based on a failure threshold, the tests would rerun.
Will look into adding this to the next release.
from courgette-jvm.
Awesome! Thanks!
from courgette-jvm.
On further investigation, I've decided that this feature will not work effectively. Because each feature/scenario is delegated its own thread at the start, that thread is responsible for running, re-running and reporting.
If we defer the re-run until all threads are complete, then the re-run would happen synchronously and we would then have to go back and update the multi-threaded reports -- this is messy.
The reason why it currently works well is because each thread takes responsibility for it own work (run -> re-run -> report)
As previously mentioned, set rerunFailedScenarios to false and run the failed scenarios using the 'courgette-rerun.txt'.
from courgette-jvm.
Related Issues (20)
- Is it possible to use the same browser to run the next test? HOT 2
- Rerun just failed Scenarios when using CourgetteRunLevel.FEATURE HOT 5
- Courgette Test Runner HOT 7
- Cucumber HTML report not generated when cucumber options is overridden HOT 3
- Cucumber reports are not uploaded HOT 6
- Execute Scenarios in parallel but their Examples sequentially HOT 2
- Can't access to the overridden Cucumber options HOT 4
- Courgette version conflict HOT 1
- TEST_RUN_SUMMARY to include failed tests HOT 2
- Courgette report not generated HOT 2
- How to kill thread? HOT 2
- Can i edit Courgette Test Runner? HOT 2
- Enable to Execute Test Runner HOT 1
- How to continue to the next test without closing the current browser HOT 2
- Not able to run Courgette class HOT 1
- Run on Appium 2 HOT 1
- How to have the status as WARNING in the Courgette Report? HOT 5
- How to embed a URL in the courgette report as URL instead of just String? HOT 2
- How to integrate courgette with docker container HOT 4
- How fix java.lang.ClassNotFoundException: Files\Git\cmd;;/ HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from courgette-jvm.