github.com/bazelbuild/rules_webtesting@v0.2.0/sauce.md (about)

     1  # Running Web Tests with Sauce Labs
     2  
     3  Before starting the tests you need to export some environmnent variables and
     4  start Sauce Connect. You can dowload Sauce Connect at
     5  https://wiki.saucelabs.com/display/DOCS/Setting+Up+Sauce+Connect+Proxy
     6  
     7  In a separate terminal run the following: `sh export SAUCE_USERNAME=<your user
     8  name> export SAUCE_ACCESS_KEY=<your access key> export
     9  TUNNEL_IDENTIFIER=<whatever you want> sc -i $TUNNEL_IDENTIFIER`
    10  
    11  Wait for the message: "Sauce Connect is up, you may start your tests."
    12  
    13  Then in the terminal where you are going to run Bazel do the following:
    14  
    15  ```sh
    16  export SAUCE_USERNAME=<your user name>
    17  export SAUCE_ACCESS_KEY=<your access key>
    18  export TUNNEL_IDENTIFIER=<whatever you want>
    19  export BUILD_TAG=<whatever you want>
    20  ```
    21  
    22  Then to actually run the SauceLabs tests, use the following: `sh bazel test
    23  --test_tag_filters=sauce --test_output=streamed ...`