Add load tests.

This commit is contained in:
Florian THIERRY
2025-10-09 14:32:00 +02:00
parent 193fcc1596
commit 13d811faae
27 changed files with 4 additions and 586 deletions

View File

@@ -0,0 +1,29 @@
{
"name": "k6-example",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"type": "module",
"scripts": {
"build": "vite build",
"test:demo": "yarn build && k6 run dist/tests/load-tests.cjs",
"test:demo-stages": "yarn build && k6 run dist/tests/reqres-stages.cjs",
"test-with-monitoring:demo": "yarn build && docker run --platform linux/amd64 -it -p 5665:5665 -v $(pwd)/dist/:/src ghcr.io/grafana/xk6-dashboard:0.6.1 run --out 'dashboard=period=2s' /src/tests/reqres.cjs",
"test-with-monitoring:demo-stages": "yarn build && docker run --platform linux/amd64 -it -p 5665:5665 -v $(pwd)/dist/:/src ghcr.io/grafana/xk6-dashboard:0.6.1 run --out 'dashboard=period=2s' /src/tests/reqres-stages.cjs"
},
"devDependencies": {
"@babel/core": "7.23.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/js-yaml": "^4.0.9",
"@types/k6": "~0.47.3",
"@types/node": "^24.5.2",
"rollup-plugin-copy": "^3.5.0",
"typescript": "5.3.2",
"vite": "^5.0.0"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
"dependencies": {
"js-yaml": "^4.1.0"
}
}