Skip to content

Commit

Permalink
Add skip blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
heitortsergent committed Jan 14, 2025
1 parent 94397c7 commit dd10995
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/sources/k6/next/testing-guides/api-load-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ For example, consider a JSON file with a list of user info such as:
You can parameterize the users with the [`SharedArray`](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-data/sharedarray) object as follows:
<!-- md-k6:skip -->
```javascript
import { check } from 'k6';
import http from 'k6/http';
Expand Down Expand Up @@ -445,6 +447,8 @@ Though a test might be designed to induce failures, sometimes we focus on only t
The test script must handle API errors to avoid runtime exceptions and to ensure that it tests how the SUT behaves under saturation according to the test goals.
For example, we could extend our script to do some operation that depends on the result of the previous request:
<!-- md-k6:skip -->
```javascript
import { check } from 'k6';
import http from 'k6/http';
Expand Down
4 changes: 4 additions & 0 deletions docs/sources/k6/v0.56.x/testing-guides/api-load-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ For example, consider a JSON file with a list of user info such as:
You can parameterize the users with the [`SharedArray`](https://grafana.com/docs/k6/<K6_VERSION>/javascript-api/k6-data/sharedarray) object as follows:
<!-- md-k6:skip -->
```javascript
import { check } from 'k6';
import http from 'k6/http';
Expand Down Expand Up @@ -445,6 +447,8 @@ Though a test might be designed to induce failures, sometimes we focus on only t
The test script must handle API errors to avoid runtime exceptions and to ensure that it tests how the SUT behaves under saturation according to the test goals.
For example, we could extend our script to do some operation that depends on the result of the previous request:
<!-- md-k6:skip -->
```javascript
import { check } from 'k6';
import http from 'k6/http';
Expand Down

0 comments on commit dd10995

Please sign in to comment.