We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c97207 commit 54b7331Copy full SHA for 54b7331
scripts/ci_cd_test_load.sh
@@ -37,6 +37,17 @@ mkdir -p reports
37
echo "Running load tests..."
38
LOG_LEVEL=error npx artillery run gateway_load_tests.yml --output reports/gateway_load_tests.json
39
40
+echo "Results:"
41
+cat reports/gateway_load_tests.json
42
+
43
+# Check that no users have failed
44
+echo "Checking that no users have failed..."
45
+failed=$(jq '.aggregate.counters."vusers.failed"' reports/gateway_load_tests.json)
46
+if [ "$failed" != 0 ]; then
47
+ echo "ERROR: Load test failed with $failed users failing."
48
+ exit 1
49
+fi
50
51
echo "Stopping gateway..."
52
kill $gateway_pid
53
0 commit comments