The Sauce Labs Cookbook

Sauce Headless

Front End Performance Testing

Insights

External Resources

More Info


Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Markdown
![Build Status](https://app.saucelabs.com/buildstatus/axios)

...

Markdown
![Browser Matrix](https://app.saucelabs.com/browser-matrix/axios.svg)

...

  1. Copy this markdown code into your GitHub README.

    Code Block
    [![Sauce Test Status](https://app.saucelabs.com/buildstatus/YOUR_SAUCE_USERNAME)](https://app.saucelabs.com/u/YOUR_SAUCE_USERNAME)

    Alternatively, you can use this HTML code on your project site.

    Code Block
    languagexml
    <a href="https://app.saucelabs.com/u/YOUR_SAUCE_USERNAME">
      <img src="https://app.saucelabs.com/buildstatus/YOUR_SAUCE_USERNAME" alt="Sauce Test Status"/>
    </a> 
    Tip
    titleMultiple Projects, Multiple Accounts

    If you just have one project, you can use your main Sauce account name. If you have multiple projects, you will want to create a sub-account for each project. 

  2. Run your tests.

  3. Make sure to set a build number, a pass/fail status, and a public, share, or public restricted visibility for every test that runs using the Test Configuration Options.
    You'll know that these are set correctly if your tests have a status of Pass or Failed instead of Finished on your dashboard, and that a build number is also displayed.

...

Code Block
[![Sauce Test Status](https://app.saucelabs.com/browser-matrix/YOUR_SAUCE_USERNAME.svg)](https://app.saucelabs.com/u/YOUR_SAUCE_USERNAME)

...

Code Block
languagexml
<a href="https://app.saucelabs.com/u/YOUR_SAUCE_USERNAME">
  <img src="https://app.saucelabs.com/browser-matrix/YOUR_SAUCE_USERNAME.svg" alt="Sauce Test Status"/>
</a> 

...

Once you have the token, append it to the badge URL:

Code Block
https://app.saucelabs.com/buildstatus/YOUR_SAUCE_USERNAME?auth=HMAC_TOKEN

...