Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

Parameterising run_report

I want to automatically generate a report that lists the results for all failed test cases for a given run in our CI system. We create a milestone named after the SCM hash for the code being tested. When creating reports manually, you can filter to the match test runs for this milestone. However, there seems to be no way of passing the milestone to match as a parameter to the run_report API. How can we get an automated report that just gives a report of the results for the exact version of the code under test?

Note: we have also looked at the version passed to add_result, but you can not filter on this even when creating reports manually.