Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.

---



Try BuildPulse for free

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