Skip to content

vimemo/travisexplorer

Repository files navigation

travisexplorer

Build Status Coverage Status Maintainability

Template project to explore running tests locally and from travis-ci with docker-compose.

Running tests

docker-compose run test yarn test

Running tests with coverage

docker-compose run test yarn test --coverage

Running tests in watch mode

docker-compose run test yarn test --watchAll

Running against local databases instead of docker-compose


export TEST_PG_URL=postgres://localhost:5432
export TEST_COUCH_URL=http://admin:pass@localhost:5984
yarn test --coverage --projects jest-*.config.js

Helpful Commands


docker-compose build/ps/down/rm
docker ps/stop/rm

Known Issues

The following jest issue prevents running multiple runners(projects) before the databases are available. Once the db/containers are available, linting and testing (runners) are available; jest --projects jest-*.config.js


https://github.com/facebook/jest/issues/5441

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published