Skip to content

Commit

Permalink
Adding instructions on how to run Cypress in Contributing.md (#5840)
Browse files Browse the repository at this point in the history
  • Loading branch information
michellethomas authored and john-bodley committed Sep 7, 2018
1 parent 3f8b970 commit 9f4d67b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9f4d67b

Please sign in to comment.