Skip to content

Example Mocha project to demonstrate connecting to BuildPulse for flaky test detection

License

Notifications You must be signed in to change notification settings

buildpulse/buildpulse-example-mocha

Repository files navigation

BuildPulse Example Project: JavaScript + Mocha

This is an example Mocha project demonstrating how to send test results to BuildPulse to help you find and fix flaky tests.

Connect Mocha to BuildPulse

After starting a free trial, 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]

  2. Then, configure your build to send the JUnit XML reports to BuildPulse. [example]

    The configuration 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]
  • GitHub Actions [docs]
  • Semaphore [docs]
  • Travis CI [docs]
  • Buildkite (available in early access)
  • Jenkins (available in early access)

Don't see your CI provider? Get in touch 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

About

Example Mocha project to demonstrate connecting to BuildPulse for flaky test detection

Topics

Resources

License

Stars

Watchers

Forks