Failing test is not detected correctly!

Issue #4 resolved
Benjamin Wilking created an issue

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)

  1. Benjamin Wilking reporter

    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

  2. Mathieu MARACHE

    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 CTest.png

  3. Log in to comment