Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Sauce Labs test runner image for saucectl to run Puppeteer tests using Sauce Labs Testrunner Toolkit.

License

Notifications You must be signed in to change notification settings

saucelabs/sauce-puppeteer-runner

Repository files navigation

Sauce Puppeteer Runner

Sauce Labs test runner image for saucectl to run Puppeteer tests using Sauce Labs Testrunner Toolkit. This repository contains the code that is being executed in the container when running a test with saucectl in your pipeline or on Sauce Labs.

If you are interested to contribute to this project, please have a look into our contribution guidelines.

Requirements

To work on code the following dependencies are required:

  • Docker

Install

You can pull the latest version of this image via:

$ docker pull saucelabs/stt-puppeteer-jest-node:latest

Run

In order to test your changes, just build the image and run a test with an example file:

# build image
$ docker build -t saucelabs/stt-puppeteer-jest-node:latest --cache-from saucelabs/stt-puppeteer-jest-node:latest .
# start container
$ docker run --env SAUCE_USERNAME --env SAUCE_ACCESS_KEY -d --name=testrunner saucelabs/stt-puppeteer-jest-node:latest
# push file into container
$ docker cp ./path/to/testfile.test.js testrunner:/home/seluser/tests
# run test
$ docker exec testrunner saucectl run /home/seluser/tests
# stop container
$ docker stop testrunner