Get output in xml format

Hi,

How can get output in junit format in azure devops pipeline

The handleSummary() callback introduced in k6 v0.30.0 supports creation of a junit XML file with the pass/fail status of any thresholds defined for a test. If you needed more than just the pass/fail status, you might have to write some custom code to process the summary data into an XML file that suits your needs.

While I’m not familiar with Azure devops, I’ve used this method to generate junit files for tests run from a GitLab CI pipeline and it works well.

1 Like

The following tutorial describes how to do it

Note that k6 cloud is not supported yet. The feature request is here.