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
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.github
client
docs
example
infrastructure/scripts Automate collection of serverless chrome (#40) Nov 23, 2018
service
website infra: use semantic release (#67) Feb 7, 2019
.all-contributorsrc
.gitignore
.nvmrc
.releaserc.js
.yvmrc
Dockerfile
LICENSE
Makefile
bootstrap.sh
greenkeeper.json
package.json
yarn.lock

README.md

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

Serverless // Lambda

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

Usage

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

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!