diff --git a/README.md b/README.md index 82f9b99..aadc4f8 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,12 @@ dotnet run Then in a seperate terminal window run the tests using the commands below. -I have added a HOSTNAME variable to each of the scripts (except simple-test.js) which needs to be added when running them. +I have added a HOSTNAME variable to each of the scripts which needs to be added when running them. + +## Simple Test +```sh +k6 run -e HOSTNAME=localhost:5157 tests/simple-test.js +``` ## Stress Test ```sh diff --git a/tests/simple-test.js b/tests/simple-test.js index 9dd5aab..f548518 100644 --- a/tests/simple-test.js +++ b/tests/simple-test.js @@ -6,5 +6,5 @@ export const options = { }; export default () => { - http.get('http://localhost:5157/age/1987-09-01'); + http.get(`http://${__ENV.HOSTNAME}/age/1987-09-01`); }; \ No newline at end of file