A distributed sanity test runner.
- requires aws-cli
- requires jq
latest release
npm install -g serverless@1.27.3
curl -o sanity-runner-bootstrap.sh -L https://raw.githubusercontent.com/tophat/sanity-runner/master/bootstrap.sh
sh sanity-runner-bootstrap.sh
specific git release
npm install -g serverless@1.27.3
curl -o sanity-runner-bootstrap.sh -L https://raw.githubusercontent.com/tophat/sanity-runner/master/bootstrap.sh
sh sanity-runner-bootstrap.sh -v X.X.X
export AWS_PROFILE=<AWS account>
export AWS_REGION=<AWS region>
source service/serverless.env
make -C service install
make -C service package
make -C service deploy
make -C client install
make -C client package
Ensure AWS Creds are setup
export AWS_PROFILE=<AWS account>
export AWS_REGION=<AWS region>
Run Client against folder with written sanity tests
sanity-runner --test-dir example/repo/sanities --output-dir output
docker pull tophat/sanity-runner:latest
To run your tests...
docker run -it -v <path to dir with your tests>:/tests -v ~/.aws/credentials -e AWS_PROFILE -e AWS_REGION sanity-runner
You can also pass in your own custom config.json file
docker run -it -v <path to your config.son>:/config.json -v <path to dir with your tests>:/tests sanity-runner
- https://github.com/smooth-code/jest-puppeteer
- https://github.com/smooth-code/jest-puppeteer/tree/master/packages/expect-puppeteer
- https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors
- https://github.com/adieuadieu/serverless-chrome
Thanks goes to these wonderful people emoji key:
Matt Haber 💻🚇 |
Brandon Baksh 📖 |
Martin Lai 💻 |
---|---|---|
Martin Ringehahn 💻 |
Tom Grant 💻 |
We welcome contributions from the community, Top Hatters and non-Top Hatters alike. Check out our contributing guidelines for more details.
Thanks to Carol Skelly for donating the github organization!