Skip to content

Commit 1f28f26

Browse files
committed
Refactor test flow and configuration
- Updated the import statement in flow.mjs to use double quotes for consistency. - Changed the base URL in test-users.yml to use an environment variable for better flexibility. - Adjusted the ramp duration and arrival rate in test-users.yml for load testing. - Removed the users.csv file as it is no longer needed for the tests.
1 parent 1858692 commit 1f28f26

File tree

7 files changed

+76
-6495
lines changed

7 files changed

+76
-6495
lines changed

.env.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ ADMIN_DB_NAME=postgres
77
CS_BASE_URL="https://fullstock-images.s3.us-east-2.amazonaws.com"
88

99
CULQI_PRIVATE_KEY="sk_test_EC8oOLd3ZiCTKqjN"
10-
VITE_CULQI_PUBLIC_KEY="pk_test_Ws4NXfH95QXlZgaz"
10+
VITE_CULQI_PUBLIC_KEY="pk_test_Ws4NXfH95QXlZgaz"
11+
12+
BASE_URL="http://localhost:3000"
13+
ARTILLERY_API_KEY="a9_lnmbws559no1kfajobi7aq0mf831v034"

package-lock.json

Lines changed: 0 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88
"build": "react-router build",
99
"lint": "eslint .",
1010
"preview": "vite preview",
11-
"start": "dotenv -e .env.test -- react-router-serve ./build/server/index.js",
11+
"start:local": "dotenv -e .env.test -- react-router-serve ./build/server/index.js",
12+
"start": "react-router-serve ./build/server/index.js",
1213
"type-check": "react-router typegen && tsc",
1314
"test": "vitest",
15+
"test:load:local": "dotenv -e .env.test -- sh -c 'npx artillery run ./src/tests/test-users.yml --record --key $ARTILLERY_API_KEY'",
16+
"test:load": "npx artillery run ./src/tests/test-users.yml --record --key $ARTILLERY_API_KEY",
1417
"prisma": "prisma",
1518
"prisma:generate": "prisma generate",
1619
"prisma:migrate": "prisma migrate dev --name init",

0 commit comments

Comments
 (0)