Skip to content

Commit

Permalink
Update README.md for k6 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
acn-dgopa authored Aug 23, 2023
1 parent 9419727 commit b78d107
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/test/K6/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,15 @@ Refer this page for more [documentation](https://docs.altinn.studio/technology/a

## Run Tests

Each `.js` is an independent test script and has an example command with the parameters to be sent for the test script.
Each `.js` is an independent test script and has an example command with the parameters to be sent for the test script.

## Run Tests Locally

For example to run the authenticationevent tests against the local app, the following command can be run
```cmd
k6 run src/tests/authenticationevent.js -e env=local
```
To acheive this, config.js must be configured with the baseurl
```cmd
local: 'host.docker.internal:5166'
```

0 comments on commit b78d107

Please sign in to comment.