File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,18 @@ function startEndToEnd () {
5252 export SPEC_FILES=" test/end-to-end/**/*.test.js"
5353 fi
5454
55- APP_SERVER=$apiPort TEST_MODE=testing multi=" spec=- mocha-junit-reporter=/dev/null" mocha --reporter mocha-multi --bail=$BAIL --require @babel/register --require test/test.mocha.env --timeout 40000 --no-config $SPEC_FILES
55+ # We want to get the test files through CI and run the tests through it as well
56+ if ! [[ -z " ${CI} " ]]; then
57+ export multi=" spec=- mocha-junit-reporter=$MOCHA_FILE "
58+ export TEST_MODE=testing
59+ export APP_SERVER=$apiPort
60+ export SCREENSHOT_ROOT=~ /test_report/screenshots
61+
62+ export SPEC_FILES=$( circleci tests glob ' test/end-to-end/**/*.test.js' ' test/unit/**/*.test.js' )
63+ echo $SPEC_FILES | circleci tests run --command=" xargs npx mocha mocha --reporter mocha-multi --require @babel/register --require test/test.mocha.env --timeout 40000 --no-config" --verbose --split-by=timings
64+ else
65+ APP_SERVER=$apiPort TEST_MODE=testing multi=" spec=- mocha-junit-reporter=/dev/null" mocha --reporter mocha-multi --bail=$BAIL --require @babel/register --require test/test.mocha.env --timeout 40000 --no-config $SPEC_FILES
66+ fi
5667 fi
5768 testPassed=$? ;
5869 if ! [[ -z " ${CI} " ]]; then
You can’t perform that action at this time.
0 commit comments