k6 integration with Bitbucket pipeline 💪 🧪 🤖
- You have installed k6 on your local machine
- You have installed your favourite IDE which is no other than VS Code
- Internet is accessible (no proxy!)
- Open IDE (VS Code is highly recommended!) then open the forked / cloned repository
- Navigate to Terminal then go to root directory
- Type
k6 run -e HOST=test --address localhost:0 single-request.js
and check results
- Navigate to
Pipelines
then selectRun pipeline
- From the modal, set the
Branch
and setPipeline
todefault
then hitRun
Sample:
- Include junit report to display no. of tests in CI