Phpunit fails, runner finish job successfully

Dear comunnity.

I am running Phpunit tests returning error code 0, but Gitlab-runner disregards the erorr and job succeeds
Are you using self-managed or Iterate faster, innovate together | GitLab Yes.

  • *GitLab Latest version.
  • *Runner not sure how to find out.
  • Add the CI configuration from .gitlab-ci.yml and other configuration if relevant (e.g. docker-compose.yml) Not using docker.

  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been? Stackoverflow.

Do you have any Idea? Please let me know if you require more information, please let me know what you need.

Best wishes

I’m not familiar with php testing. In bash exit code 0 is mostly a success, but that might be different for php, but it might be something you might want to check.

Can you post your .gitlab-ci.yml? Although you don’t use docker, to be able to help we need some insight on what you’re doing.

Stackoverflow is a big place. Do you have specific links with stuff you tried?

I don’t think I can really help you, but I just ask for the necessary information for other people to be able to help you.

Thanks for input bartj,

In PHP, The status 0 is used to terminate the program successfully .
My gitlab-ci.yml is just fine, I am quite sure, only have 3 steps for 3 different scripts.
I will write to Stackoverflow, I though I should better chance at the forum.