-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d02ef94
commit 1ed1680
Showing
9 changed files
with
94 additions
and
18 deletions.
There are no files selected for viewing
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
: "${npm_lifecycle_event?This script should be run from npm}" | ||
|
||
rm -rf coverage | ||
npm-run-all \ | ||
--sequential \ | ||
"${npm_lifecycle_event}:*" | ||
|
||
scripts/merge-coverage.js | ||
|
||
nyc \ | ||
report \ | ||
--clean \ | ||
--check-coverage \ | ||
--report-dir coverage/full |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
: "${npm_lifecycle_event?This script should be run from npm}" | ||
|
||
COVERING=${npm_lifecycle_event#cover:} | ||
COVER_NAME=${COVERING//:/-} | ||
|
||
nyc \ | ||
--nycrc-path \ | ||
".nycrc-${COVER_NAME}.yml" \ | ||
--clean \ | ||
--temp-dir "coverage/${COVER_NAME}/.nyc_output" \ | ||
--report-dir "coverage/${COVER_NAME}" \ | ||
npm run "test:${COVERING}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
: "${npm_lifecycle_event?This script should be run from npm}" | ||
|
||
npm-run-all \ | ||
--sequential \ | ||
"${npm_lifecycle_event}:*:$([ -z ${CI+x} ] && echo "local" || echo "saucy")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
: "${npm_lifecycle_event?This script should be run from npm}" | ||
: "${npm_package_config_TEST_API_PORT?This script should be run from npm}" | ||
: "${npm_package_config_TEST_BROWSER_PORT?This script should be run from npm}" | ||
|
||
TESTING="${npm_lifecycle_event#test:}" | ||
TEST_PROFILE="${TESTING//:/-}" | ||
|
||
NODE_ENV=test \ | ||
PORT=${npm_package_config_TEST_API_PORT} \ | ||
UI_PORT=${npm_package_config_TEST_BROWSER_PORT} \ | ||
start-server-and-test \ | ||
browser:test \ | ||
"http://localhost:${npm_package_config_TEST_BROWSER_PORT}" \ | ||
"cucumber-js -p ${TEST_PROFILE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
: "${npm_lifecycle_event?This script should be run from npm}" | ||
: "${npm_package_config_TEST_API_PORT?This script should be run from npm}" | ||
|
||
TESTING=${npm_lifecycle_event#test:} | ||
TEST_PROFILE=${TESTING//:/-} | ||
|
||
NODE_ENV=test \ | ||
PORT=${npm_package_config_TEST_API_PORT} \ | ||
cucumber-js -p "${TEST_PROFILE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
export var PORT = Number.parseInt(process.env.PORT || '6060'); | ||
export var PORT = Number.parseInt( | ||
process.env.PORT || | ||
/* istanbul ignore next: because it's only unset when the test are configured correctly */ '6060' | ||
); |