grafana / k6-intellij-plugin

Brings k6 to your favorite IDE!
https://plugins.jetbrains.com/plugin/16141-k6
Apache License 2.0
4 stars 1 forks source link

Show threshold results as passed/failed tests #3

Closed mbolotov closed 3 years ago

mbolotov commented 3 years ago

It's possible to parse output of the k6 script execution and show threshold results within IntelliJ test console: image

ppcano commented 3 years ago

k6 does not support a standard API to return threshold information. Therefore, at this moment, this features relies on parsing the k6 console output to show the threshold info on the IntelliJ UI.

I do not suggest implementing it because k6 console output could change.

On the other hand, k6 supports the handleSummary callback to return this type of information. I am not sure how it could look like this type of integration because it requires script changes.