Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msaf1980/xk6-getenv
read environment variables with default value in k6
https://github.com/msaf1980/xk6-getenv
k6 k6-extension xk6
Last synced: about 2 months ago
JSON representation
read environment variables with default value in k6
- Host: GitHub
- URL: https://github.com/msaf1980/xk6-getenv
- Owner: msaf1980
- License: mit
- Created: 2021-11-30T16:46:00.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-19T17:19:31.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T08:18:49.513Z (3 months ago)
- Topics: k6, k6-extension, xk6
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xk6-getenv
This is a [k6](https://go.k6.io/k6) extension using the [xk6](https://github.com/grafana/xk6) system.
| :exclamation: This is a proof of concept, isn't supported by the k6 team, and may break in the future. USE AT YOUR OWN RISK! |
| ---------------------------------------------------------------------------------------------------------------------------- |This projects implements read environment variables with default value (for dynamic configure tests)
## Build
To build a `k6` binary with this extension, first ensure you have the prerequisites:
- [gvm](https://github.com/moovweb/gvm)
- [Git](https://git-scm.com/)Then, install [xk6](https://github.com/grafana/xk6) and build your custom k6 binary with increment extension:
1. Install `xk6`:
```shell
$ go install go.k6.io/xk6/cmd/xk6@latest
```2. Build the binary:
```shell
$ xk6 build --with github.com/msaf1980/xk6-getenv@latest
```