Skip to content

Commit 945245b

Browse files
committed
mark tests as failed in CircleCI when failed
1 parent a2c34c2 commit 945245b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test-automation/testrun.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
./node_modules/.bin/webdriver-manager start --detach
33
npm run test
44

5-
if [ $? -eq 0 ]; then
6-
echo "Test case successfully completed"
5+
test_exit_code=$?
6+
7+
if [ $test_exit_code -eq 0 ]; then
8+
echo "Tests successfully completed"
79
else
8-
echo "Test case Failed"
10+
echo "Tests failed"
911
fi
12+
13+
exit $test_exit_code

0 commit comments

Comments
 (0)