-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding run groups support (#8)
* feat: Adding run groups support * feat: Adding metadata support * feat: Adding metadata support * PR comments
- Loading branch information
Showing
126 changed files
with
625 additions
and
31,444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# xk6-tracetest | ||
|
||
This extension adds tracetest support to [k6](https://github.com/grafana/k6)! | ||
This extension adds Tracetest support to [k6](https://github.com/grafana/k6)! | ||
|
||
That means that if you're testing an instrumented system, you can use this extension to trigger test runs. | ||
|
||
|
@@ -29,22 +29,36 @@ $ go install go.k6.io/xk6/cmd/xk6@latest | |
$ xk6 build --with github.com/kubeshop/xk6-tracetest@latest | ||
``` | ||
|
||
## Available Variables | ||
3. Run a script: | ||
|
||
```bash | ||
$ ./k6 run examples/list-pokemons.js --env XK6_TRACETEST_API_TOKEN=<your token> -o xk6-tracetest | ||
|
||
``` | ||
## Example | ||
|
||
To run a full example take a look at the fully flesh demo we have for you in the Tracetest main mono repo: [examples/tracetest-k6](https://github.com/kubeshop/tracetest/tree/main/examples/tracetest-k6) | ||
|
||
## Using the binary with Tracetest Core | ||
|
||
Moving forward the latest updates will be only available from the tracetest App, if you want to keep using it with the OpenSource version make sure to build it with the version supporting it. | ||
|
||
1. Build the binary: | ||
|
||
```bash | ||
$ xk6 build --with github.com/kubeshop/[email protected] # OSS supported version | ||
``` | ||
|
||
### Available Variables | ||
|
||
If you want to configure the tracetest k6 binary you can do it by using any of the following environment variables | ||
|
||
- **XK6_TRACETEST_SERVER_URL:** Updates the tracetest server url for API interactions (can be overwritten by the script config) | ||
- **XK6_TRACETEST_SERVER_PATH:** Updates the tracetest server path for API interactions (can be overwritten by the script config) | ||
- **XK6_TRACETEST_SERVER_PATH:** Updates the tracetest server token that will be used to authenticate with the server (can be overwritten by the script config) | ||
- **XK6_TRACETEST_TOKEN:** Updates the tracetest server token that will be used to authenticate with the server (can be overwritten by the script config) | ||
|
||
You can also set a default tracetest endpoint when running the k6 binary by using the following option: | ||
|
||
`./k6 run examples/test-from-id.js -o xk6-tracetest=<server-url>` | ||
|
||
## Example | ||
|
||
To run a full example take a look at the fully flesh demo we have for you in the Tracetest main mono repo: [examples/tracetest-k6](https://github.com/kubeshop/tracetest/tree/main/examples/tracetest-k6) | ||
`./k6 run examples/list-pokemons.js -o xk6-tracetest=<server-url>` | ||
|
||
## Running on https://app.tracetest.io | ||
|
||
`./k6 run examples/test-from-id.js --env XK6_TRACETEST_API_TOKEN=<your token> -o xk6-tracetest=https://api.tracetest.io` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.