Skip to content

Thresholds console output format #1675

@ppcano

Description

@ppcano

k6 shows the threshold result as a success (✓) or failure (✗).

Given:

  failed_requests: ["rate<0.1"],
  http_req_duration: ["p(95)<500", "p(90)<1500"]

The k6 output could be:

✓ failed_requests............: 0.00%  ✓ 0    ✗ 8970 
✓ http_req_duration..........: avg=131.22ms min=115.29ms med=124.77ms max=260.27ms p(90)=150.87ms p(95)=162.87ms

I suggest a change to the threshold output to show the existing threshold configuration.

Here a suggestion inline with the current format:

failed_requests............: 0.00%  ✓ 0    ✗ 8970
 └─ ✓ rate<0.1 
http_req_duration..........: avg=131.22ms min=115.29ms med=124.77ms max=260.27ms p(90)=150.87ms p(95)=162.87ms
 └─ ✓ p(90)<1500
 └─ ✓ p(95)<500

Showing this information is useful in case you didn't remember the threshold configuration or you changed it between test runs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementevaluation neededproposal needs to be validated or tested before fully implementing it in k6ux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions