I am trying to make an K6 integration in an Azure devops pipeline. To do this I use HandleSummary to make an Junit report to upload to Azure (Load Testing with Azure DevOps and k6 | by Ivan (アイバン) Porta | Microsoft Azure | Medium). Also I write the result to STDOUT to see the result in the console.
Only the result in the console is different when I use HandleSummary than with the default output. Can anyone help with this? The default one is much easier to read.
Default output:
HandleSummary:
Code in script:
export function handleSummary(data) {
// create a Junit file for test results
return {
stdout: textSummary(data, { enableColors: true }),
'./junit.xml': jUnit(data),
'./summary.json': JSON.stringify(data),
}
}