gitlab-runner job finished with sucess but phpunit is returning error status zero, leading into error

Viewed 83

Gitlab-runner is terminating a job successfully even though PHPunit test is throwing a error code 0, although it should fail, it continues leading me into error. I also know the error is comming because of bad merge, which are going into production.

my gitlab-ci.yml is

stages:
  - test
  - deploy 
  - .post


     
stages:

test_job:
  stage: test
  script:
    - phpunit

I also try stopOnFailure to true with no luck.

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="never"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         coverageText="false"
         beStrictAboutTestsThatDoNotTestAnything="false"
         bootstrap="Bootstrap_tests.php"
    >

Please let me know if you need more information and thanks for input!

0 Answers
Related