Tests are failing but build is passing. echo $? returning 0

I have tried putting echo $?, and it’s returning 0.

config.yaml
- run:
name: Run Paratest
command: |
composer paratest
echo $?

composer.json
“paratest”: “php tests/parallel_test_setup.php”,

parallel_test_setup: It is a file for setting-up the databases to run tests parallel.

Hi @shahzaibm10c,

CircleCI treats non-zero exit codes as failures and 0 exit codes as passing. You’ll want to configure your test runner output a non-zero exit code when a test fails. You can find more info here: Collect test data - CircleCI

Let me know how it goes or if any additional questions come up. Cheers!