Load Testing · Junior · Question 21 of 75

A k6 run has 30% failed checks but no thresholds. What exit code does k6 return?

Show the answer

Correct answer: Zero: failed checks alone don't fail the run

Explanation

Checks only record results. To fail the run on checks, add a threshold on the checks metric, e.g. checks: ['rate>0.99'].

Further reading

Problem with a question

Load Testing · Junior · question 21

Test yourself

Take the Load Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz