Skip to content

Automate your sanity tests against a chrome browser running in AWS Lambda. Can be implemented into deployment pipelines for easy post-deploy tests or can be run on the regular to determine if your site starts regressing

License

Notifications You must be signed in to change notification settings

seanfahey/sanity-runner

 
 

Repository files navigation

Builds Greenkeeper badge
All Contributors Maturity badge - level 2 Slack workspace

Sanity-Runner

A distributed sanity test runner.

Installation

  • requires aws-cli
  • requires jq

Bootstrap Scripts

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

Build From Source

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

Client

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

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

References

Contributing

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.

Credits

Thanks to Carol Skelly for donating the github organization!

About

Automate your sanity tests against a chrome browser running in AWS Lambda. Can be implemented into deployment pipelines for easy post-deploy tests or can be run on the regular to determine if your site starts regressing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 79.0%
  • Shell 11.5%
  • Makefile 5.8%
  • CSS 2.0%
  • Other 1.7%