From 0a9d6910369a86e7277a2f4f55130da0e2edca8c Mon Sep 17 00:00:00 2001 From: michellethomas Date: Fri, 7 Sep 2018 10:26:51 -0700 Subject: [PATCH] Adding instructions on how to run Cypress in Contributing.md (#5840) (cherry picked from commit 9f4d67b49b367cbb1c6a2311344d9baa625dbcb8) --- CONTRIBUTING.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 28643794a2d10..4c83e8968a698 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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: