Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/buildpulse/buildpulse-example-mocha
Example Mocha project to demonstrate connecting to BuildPulse for flaky test detection
https://github.com/buildpulse/buildpulse-example-mocha
flake-detection mocha mochajs
Last synced: 3 months ago
JSON representation
Example Mocha project to demonstrate connecting to BuildPulse for flaky test detection
- Host: GitHub
- URL: https://github.com/buildpulse/buildpulse-example-mocha
- Owner: buildpulse
- License: mit
- Created: 2021-09-03T13:10:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-15T21:40:15.000Z (4 months ago)
- Last Synced: 2024-10-01T05:54:07.751Z (3 months ago)
- Topics: flake-detection, mocha, mochajs
- Language: JavaScript
- Homepage: https://buildpulse.io
- Size: 31.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BuildPulse Example Project: JavaScript + Mocha
This is an example [Mocha](https://mochajs.org) project demonstrating how to send test results to [BuildPulse](https://buildpulse.io) to help you find and [fix flaky tests](https://buildpulse.io/products/flaky-tests).
## Connect Mocha to BuildPulse
After starting a [free trial](https://github.com/marketplace/buildpulse/plan/MDIyOk1hcmtldHBsYWNlTGlzdGluZ1BsYW40NzM5#pricing-and-setup), you can add BuildPulse to your project in just a few quick steps:
1. If you haven't already done so, set up Mocha to output JUnit XML reports for your test results. [[example][commit-for-xml-reports]]
2. Then, configure your build to send the JUnit XML reports to BuildPulse. [[example][commit-for-buildpulse-integration]]
The [configuration][commit-for-buildpulse-integration] relies on your BuildPulse account ID, repository ID, key, and secret. You'll see this information when viewing your repository on buildpulse.io.
This example uses GitHub Actions CI, but you can integrate just as easily with other CI providers as described below.
## Works with the CI you already have
BuildPulse offers integrations for:
- **CircleCI** [[docs](https://circleci.com/developer/orbs/orb/workshop64/buildpulse)]
- **GitHub Actions** [[docs](https://github.com/marketplace/actions/buildpulse)]
- **Semaphore** [[docs](https://github.com/buildpulse/buildpulse-semaphore)]
- **Travis CI** [[docs](https://github.com/buildpulse/buildpulse-travis-ci)]
- Buildkite (available in early access)
- Jenkins (available in early access)Don't see your CI provider? [Get in touch](mailto:[email protected]?body=%3C%3C%20Please%20tell%20us%20what%20CI%20service%20you%27re%20using.%20We%27ll%20follow%20up%20with%20you%20soon%21%20%3E%3E&subject=Please%20add%20support%20for%20this%20CI%20service%20next) and we may be able to quickly add support for it.
---
Automatically **detect flaky tests.** Focus on the top offenders to **quickly improve your builds.** Save developer time and frustration. **Regain trust in your test suite.**
👉 [Get started at buildpulse.io](https://buildpulse.io?utm_source=github.com&utm_campaign=example-repositories&utm_content=mocha-text-link)
[commit-for-xml-reports]: https://github.com/buildpulse/buildpulse-example-mocha/commit/main~1
[commit-for-buildpulse-integration]: https://github.com/buildpulse/buildpulse-example-mocha/commit/main