describe is a wrapper of group that adds the ability to:
- Catch exceptions to allow continuing the execution outside of the describe function.
- Returns a boolean to indicate the success of all its k6chaijs assertions.
describe-example.js
Output
API
Parameter | Type | Description |
---|---|---|
name | string | Test case name. The test case name should be unique. Otherwise, the test case will be grouped. |
function | function | The test case function to be executed |
Returns
Type | Description |
---|---|
bool | Returns true when all expect conditions within the describe() body were successful, and no unhandled exceptions were raised, otherwise false. |
Chaining describe() blocks
If you want to skip the execution of the following describe blocks, consider chaining them using && as shown below.