Adding instructions on how to run Cypress in Contributing.md (#5840)

This commit is contained in:
michellethomas 2018-09-07 10:26:51 -07:00 committed by John Bodley
parent 3f8b970a88
commit 9f4d67b49b
1 changed files with 15 additions and 0 deletions

View File

@ -343,6 +343,21 @@ We use [Mocha](https://mochajs.org/), [Chai](http://chaijs.com/) and [Enzyme](ht
npm i
npm run test
We use [Cypress](https://www.cypress.io/) for integration tests. Tests can be run by `tox -e cypress`. To open Cypress and explore tests first setup and run test server:
export SUPERSET_CONFIG=tests.superset_test_config
superset load_test_users
superset db upgrade
superset init
superset load_examples
superset runserver
Open Cypress tests:
cd /superset/superset/assets
npm run build
npm run cypress run
## Linting
Lint the project with: