Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 2.05 KB

README.md

File metadata and controls

51 lines (38 loc) · 2.05 KB

Sauce Labs Status Badge Demo

CircleCI

Status Badge

Sauce Test Status

Browser Matrix

Sauce Test Status


Prerequisites:


How to Run This Demo:

  1. Clone this repository:

    git clone https://github.com/saucelabs-training/demo-sauce-status-badge.git
    
  2. Set your Sauce Labs Credentials as environment variables

  3. Add the username for the badge and matrix URLs like so:

    • Build Status Badge Example URL:
      [![Build Status](https://app.saucelabs.com/buildstatus/SAUCE_USERNAME)](https://app.saucelabs.com/u/SAUCE_USERNAME)
      
      
    • Browser Matrix Example URL:
      [![Browser Matrix](https://app.saucelabs.com/browser-matrix/SAUCE_USERNAME.svg)](https://app.saucelabs.com/u/SAUCE_USERNAME)
      
  4. Navigate to the project directory and run:

    npm install
    
  5. Run the tests with the following command:

    npm test
    

Note that the demo pulls build status data from the last automated build. Create a sub-account in order to access specific individual project data. For more details refer to the following wiki page: Using the Status Badges and the Browser Matrix Widget to Monitor Test Results