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

Support for mocha retries from mocha config #53

Open
rakeshpareek01 opened this issue May 9, 2023 · 2 comments
Open

Support for mocha retries from mocha config #53

rakeshpareek01 opened this issue May 9, 2023 · 2 comments

Comments

@rakeshpareek01
Copy link

module.exports = {
'allow-uncaught': false,
'async-only': false,
bail: false,
'check-leaks': false,
color: true,
delay: false,
diff: true,

retries: 2,
};

Good to have support for failed test retries

@steph-lebl
Copy link

I agree with @rakeshpareek01! We are using mocha.parallel for concurrent api testing and having the possibility to retry will help dealing with flaky tests in the build process.

@steph-lebl
Copy link

Hi @rakeshpareek01!

Here is the PR for adding retries to mocha.parallel:
#54

If your interested in the concurrent api testing, the tooling that supports the approach already includes mocha.parallel retries. When a test does not does not succeed on the first time (flaky), the full error in JSON format is available in the test report.
Ex:
https://github.com/VilledeMontreal/mocha-concurrent-api-tests/blob/master/example/README.md#test-report-exemple-when-a-test-fails-or-does-not-succeed-on-the-first-time-flaky

Please give a star to https://github.com/VilledeMontreal/mocha-concurrent-api-tests if it helps you!

Have a nice day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants