To declare a new test case, call the describe(name, function) function. The test case name should be unique within the script. If it's not, the test cases will be grouped.
Behind the scenes, the describe() function creates a k6 group.
|name||string||Test case name|
|function||function||The test case function to be executed|
|bool||Returns true when all expect conditions within the describe() body were successful, and no unhandled exceptions were raised, otherwise false.|
Execution of this script should print the following output.
Note, a failed describe() won't stop the execution of the next describe() block.
If you would like to skip the execution of the following blocks, consider chaining the describe() calls using && as shown below.
Note, the third describe() block wasn't executed because the prior block returned false.