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!