You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/09/07 17:26:53 UTC

[GitHub] john-bodley closed pull request #5840: Adding instructions on how to run Cypress in Contributing.md

john-bodley closed pull request #5840: Adding instructions on how to run Cypress in Contributing.md
URL: https://github.com/apache/incubator-superset/pull/5840
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 28643794a2..4c83e8968a 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:


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org