GithubHelp home page GithubHelp logo

Comments (4)

prashant-ramcharan avatar prashant-ramcharan commented on May 18, 2024

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.

  1. Set rerunFailedScenarios to 'false' in the runner.
  2. In you CI tool, determine whether to rerun the failed scenarios based on your failure threshold.
  3. 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.

prashant-ramcharan avatar prashant-ramcharan commented on May 18, 2024

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.

amitmindstix avatar amitmindstix commented on May 18, 2024

Awesome! Thanks!

from courgette-jvm.

prashant-ramcharan avatar prashant-ramcharan commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.