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

Basic image for a testsuite using puppeteer, mocha and chai

License

Notifications You must be signed in to change notification settings

mytheresa/puppeteer-mocha-chai-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppeteer-mocha-chai-docker

license Docker Automated build Docker Build Status

Basic docker image for tools and testsuites using puppeteer, mocha and chai

Usage

Run tests on your website:

# assuming you are in the directory with your tests
docker run \
    --rm \
    --tmpfs=/tmp \
    -e YARN_CACHE_FOLDER=/tmp/yarn \
    -v "$(pwd)":/validator/tests/ \
    -e URLS=https://your-project.com/url-1.html,https://your-project.com/url-1.html \
    -t schliflo/puppeteer-mocha-chai-docker \
    yarn test
docker-compose run \
    --rm \
    puppeteer-mocha-chai \
    env URLS=https://your-project.com/url-1.html,https://your-project.com/url-1.html \
    yarn test

Generate screenshots of your website:

# screenshots get saved to the current directory
docker run \
    --rm \
    --tmpfs=/tmp \
    -e YARN_CACHE_FOLDER=/tmp/yarn \
    -v "$(pwd)":/validator/screenshots/ \
    -e URLS=https://your-project.com/url-1.html,https://your-project.com/url-1.html \
    -t schliflo/puppeteer-mocha-chai-docker \
    yarn screenshots
docker-compose run \
    --rm \
    puppeteer-mocha-chai \
    env URLS=https://your-project.com/url-1.html,https://your-project.com/url-1.html \
    yarn screenshots

About

Basic image for a testsuite using puppeteer, mocha and chai

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 93.0%
  • Dockerfile 7.0%