I have a k6 tests that are to be triggered from a Azure devops build pipeline.
was wondering if K6 has any way of exporting the results of ‘checks’ to a junit.xml such that ‘Publish test results’ tasks in a pipeline can read the file and display the number of checks that has gone fine as ‘Passed’ and other as ‘failed’ ?
Note this is when I try to run K6 tests as a functional test with just 1 vus and 1 iteration.
Out of interest: can you elaborate a little on your functional testing with k6? This is an area we are thinking about expanding. Which features would you like to see in k6 that are related to functional testing?
Hi @pawel thanks for the quick reply. I will check it out.
The idea is very simple, we have a list of apis that has to be tested (be it with many input data, or negative tests or a simple functional tests). And considering each .js file as a testcase (say for example has 5 checks).
If it is run with 1 vus and 1 iteration, print the filename as testcase name and if all the checks are ok, report the test case as pass.
As a functional test, i would really like to see a PASS/FAIL status rather than thresholds/checks.