Failing test is not detected correctly!
Issue #4
resolved
Hi. Thanks for your work, it helps us a lot. I think we have a bug here. As soon as one of my tests fails, it is recognized as broken build, but it is marked as testless build. Output XML is attached.
Comments (3)
-
reporter -
reporter - changed status to resolved
It is actually a problem of the somehow undetermined return value of ctest
-
I'm sorry to not have picked up earlier your issue... You need to make the CTest task run as a Final Task. Final tasks Are always executed even if a previous task fails
- Log in to comment
Ok, so the problem is that we call a bamboo script with: ctest -T test If one test fails, ctest returns something which is not zero. This is regarded as a broken build. So we added an extra command after ctest to create a zero as return value ctest -T test echo "finished testing"
This did the trick