-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split cypress tests #6241
Split cypress tests #6241
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
{ | ||
"baseUrl": "http://localhost:8081", | ||
"videoUploadOnPasses": false, | ||
"video": false, | ||
"ignoreTestFiles": ["**/!(*.test.js)"], | ||
"projectId": "fbf96q", | ||
"defaultCommandTimeout": 10000, | ||
"viewportWidth": 1280, | ||
"viewportHeight": 800 | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
superset/bin/superset db upgrade | ||
superset/bin/superset load_test_users | ||
superset/bin/superset load_examples | ||
superset/bin/superset init | ||
flask run -p 8081 --with-threads --reload --debugger & | ||
|
||
cd "$(dirname "$0")" | ||
|
||
yarn install --frozen-lockfile | ||
npm run build | ||
npm run cypress run | ||
#run all the python steps in a background process | ||
(time /home/travis/build/apache/incubator-superset/superset/bin/superset db upgrade; time /home/travis/build/apache/incubator-superset/superset/bin/superset load_test_users; /home/travis/build/apache/incubator-superset/superset/bin/superset load_examples; time /home/travis/build/apache/incubator-superset/superset/bin/superset init; echo "[completed python build steps]"; flask run -p 8081 --with-threads --reload --debugger) & | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we be using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think either way is fine. They will both lead to a failed build if something goes wrong in the middle |
||
|
||
#block on the longer running javascript process | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems like we should have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. npm run build takes a really long time esp when it freezes on 92%. So I decided to put in as much as possible in the background while it is running so as to save the time it will take to run if it were to run after npm run build |
||
(time yarn install --frozen-lockfile; time npm run build; echo "[completed js build steps]") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See note ^^. |
||
|
||
CYPRESS_PATH='cypress/integration/'${1}'/*' | ||
time npm run cypress run -- --spec "$CYPRESS_PATH" --record false --config video=false | ||
|
||
kill %1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you mean to leave the
time
statements in here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I left it there so we can see how long each subpart takes