i want to format result of my performance test as JUnit output. I found that k6 is able to make custom file format in handleSummary function. I tried it in my script and it generated output with thresholds if they were passed or not.
Is there any option how to generate JUnit output with another metrics (avg, median, percentiles, …) keep these thresholds (passed / failed) without creating XML file. I want to pass it as argument to python script.
Every API call is wrapped to group and there are set thresholds for these groups according to avg response time.
can you clarify on what you expect, please? Do you want to generate a text file and pipe it to a python script? Maybe post an example of what you get and what you expect as a file content.
With the customSummary you have access to all the collected metrics and you can directly control what you want to write. Of course, JUnit function has some limits, and you might hit that but nothing prevent you from writing a custom function.
This solution is working but is generating just thresholds - mentioned above. I want to include to this summary output more metrics like avg, median, etc.