You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2018/09/07 17:26:55 UTC
[incubator-superset] branch master updated: Adding instructions on
how to run Cypress in Contributing.md (#5840)
This is an automated email from the ASF dual-hosted git repository.
johnbodley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 9f4d67b Adding instructions on how to run Cypress in Contributing.md (#5840)
9f4d67b is described below
commit 9f4d67b49b367cbb1c6a2311344d9baa625dbcb8
Author: michellethomas <mi...@gmail.com>
AuthorDate: Fri Sep 7 10:26:51 2018 -0700
Adding instructions on how to run Cypress in Contributing.md (#5840)
---
CONTRIBUTING.md | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 2864379..4c83e89 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: