- k6
- golang (min ver 1.22.3)
- Open two terminal
- Run the caddy backend in one of the terminal by using:
make run
- And if you ready to test, run:
make test
If you want to know why your test fail, you can use:
make test-debug
💡
make test
&make test-debug
will automatically set the BASE_URL of the backend tohttp://localhost:8080
, if you wish to change it, you can use:BASE_URL=http://backend.url:8080 make test