Testing simple API using k6 [smoke, load, strees, and soak].
The API was built using expressjs and the endpoint would be tested are /home
and /hello
-
Clone this repo
git clone https://github.com/shotozuro/k6-testing.git
-
Install the dependencies
npm install
-
Run the project
npm run start
-
This repo use k6 for testing. Please, follow k6 installation instruction first.
-
Run the test
for /home
endpoint npm run test:home
and
for /hello
endpoint npm run test:hello