Closed thebarty closed 6 years ago
Can you reproduce this on your local machine when running this test command and running echo $?
after it? Just in case you have a linux or mac close by 😉
I wasn't able to reproduce this behavior on my mac. To me it only returned a non-zero exit-code if there actually were tests failing.
Please also provide the output you get when calling the meteor test
command.
@SimonSimCity yes, you were right. It exists with a non-zero, if a test fails.
I wanted to continue with my acceptance tests and this is my solution:
SERVER_TEST_REPORTER=xunit XUNIT_FILE=$PWD/test-results-unit-integrational.xml meteor test --once --driver-package meteortesting:mocha --settings settings-unittests-ci.json --allow-superuser || true # prevent failing mocha-tests to result in exit 1 (which would exit Gitlab). Always continue with acceptance-tests
Just for interest ... why do you want this hack? You want a CI to fail if the tests fail, right?
Hint: If you want a couple of commands to run through and to let it fail if either one failed, this could help:
meteor test || CRASHED=1
meteor test --full-app || CRASHED=1
if [ "$CRASHED" ]; then exit 1; fi
Hi guys,
the testrunner runs, BUT after it is done the command exits with an error-exit-code (!==0) and stops my Gitlab skript.
Any idea what might cause the command to exit with an error code?