Failed tests resolved in Bamboo?

Is it possible to somehow set the threshold for JUnit test cases that would stop Bamboo when the build failed with failed tests?

I know about the Quarantine option, but thatโ€™s not exactly what Iโ€™m looking for. I donโ€™t want to manually transfer the test cases from the quarantined set. We have a TDD environment where test cases are based on a large set of external annotated data and we want to create coverage.

I want to see the actual results (e.g. 43% of the pass) and tell Bamboo to succeed in the build, for example. when the results are> 40%.

By the way, if I stick to Quarantine, do I really need to select them one at a time? There are 10,000 !: D

+4
source share
1 answer

Bamboo doesn't seem to support this use case. There are some plugins that try to handle this.

Finally, I decided to create an intermediate script that parses the test results (JUnit XML). There are three scenarios here:

  • entire test pass: XML stays as it is
  • Too many failed tests: XML stays as it is (build will fail)
  • there are tests with an error, but their number does not exceed the set threshold value: the XML content is replaced by the "transmitting" content, so Bamboo does not interrupt the assembly
+3
source

Source: https://habr.com/ru/post/1495518/


All Articles