-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set baseUrl as env var, add README for perf tests
- Loading branch information
Showing
7 changed files
with
35 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Academies API Performance tests | ||
|
||
This directory holds the performance test scripts for the Academies API. | ||
|
||
Tests are written for the [k6](https://k6.io) performance testing tool. | ||
|
||
## Setup | ||
|
||
You will need k6 installed to be able to run these tests. Details on how to do so are available in their [documentation](https://grafana.com/docs/k6/latest/get-started/installation/). | ||
|
||
## Configuration | ||
|
||
The variables you will need to set are defined below: | ||
|
||
| Variable | Description | Example | | ||
|---|---|---| | ||
| `BASE_URL` | The url of the service to be tested | `https//localhost:5001` | | ||
|
||
## Running the tests | ||
|
||
To run an individual script, navigate to the correct directory and run | ||
|
||
`k6 run -e BASE_URL=<your-value> <your-script-name>` | ||
|
||
## Results | ||
|
||
By default, metrics are output to the console at the end of the tests, including any checks that are run as part of the test scripts. |
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 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 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 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 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 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