We’re running phpunit tests, some of which we’re marked incomplete. https://phpunit.de/manual/6.5/en/incomplete-and-skipped-tests.html
What we want, is to let the build process continue, but instead it fails: Exited with code 255, which I think means the exit status is out of range (or -1).
I think a possible solution is to get php to properly report errors, I’m just not sure how to do that. I have tried this in my phpunti.xml:
I don’t think incomplete PHPUnit tests are an error condition in CircleCI. I use them all the time, and our tests always return an exit status of 0 (successful).
The best approach might be to get an SSH session to run tests by file or by class, to narrow down which one is causing the failure.
That’s good advice, but the SSH sessions aren’t working! I have a ticket in for that issue.
Question: when you run phpunit tests, are you getting output like you might on a local install (ie. the test output?) I’m getting nothing, and I’m wondering if that’s the issue, like php is outputting something that unix is seeing as “out of range,” thus the 255 error.
I’ll be able to trace it back better when I have SSH back, I’m just wondering if you’ve had that output to the console.
If you are without SSH, try branching your work, cut your tests down to a single case, and push that. Get a successful build, then re-enable ten tests at a time, until you can isolate the problematic test.
It may be worth stripping out any funky options in phpunit.xml and running it as bare-bones as you can until you know what the cause of the issue is.