Skip to content

Commit

Permalink
Set test exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
ioedeveloper committed Jun 16, 2020
1 parent 39202c9 commit 7906773
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ci/browser_tests_chrome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ setupRemixd
sleep 5

TESTFILES=$(circleci tests glob "./test-browser/tests/**/*.test.js" | circleci tests split --split-by=timings)
ls
for TESTFILE in $TESTFILES; do
./node_modules/.bin/nightwatch --config nightwatch.js --env chrome $TESTFILE || exit 1;
./node_modules/.bin/nightwatch --config nightwatch.js --env chrome $TESTFILE || TEST_EXITCODE=1
done

echo "$TEST_EXITCODE"
Expand Down
3 changes: 1 addition & 2 deletions ci/browser_tests_firefox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ setupRemixd
sleep 5

TESTFILES=$(circleci tests glob "./test-browser/tests/**/*.test.js" | circleci tests split --split-by=timings)
ls
for TESTFILE in $TESTFILES; do
./node_modules/.bin/nightwatch --config nightwatch.js --env firefox $TESTFILE || exit 1;
./node_modules/.bin/nightwatch --config nightwatch.js --env firefox $TESTFILE || TEST_EXITCODE=1
done

echo "$TEST_EXITCODE"
Expand Down

0 comments on commit 7906773

Please sign in to comment.