diff --git a/chart/templates/tests/test-frontend-connection.yaml b/chart/templates/tests/test-frontend-connection.yaml index f2d7adcd..1421a0bb 100644 --- a/chart/templates/tests/test-frontend-connection.yaml +++ b/chart/templates/tests/test-frontend-connection.yaml @@ -21,5 +21,5 @@ spec: #args: ["-c", "while true; do echo Welcome to JournalDev; sleep 100;done"] #args: ["-c", "node_modules/.bin/element run default-user-sim.perf.ts 2>&1 | tee /dev/stderr | grep -qE '([1-9]|[0-9][0-9]) failed|([1-9]|[0-9][0-9]) unexecuted' && exit 1 || exit 0"] #args: ["-c", "node_modules/.bin/element run default-user-sim.perf.ts 2>&1 | tee log.txt | grep -qE '([1-9]|[0-9][0-9]) failed|([1-9]|[0-9][0-9]) unexecuted' && exit 1 || exit 0"] - args: ["-c", "node_modules/.bin/element run default-user-sim.perf.ts 2>&1"] - restartPolicy: Never \ No newline at end of file + args: ["-c", "node_modules/.bin/element run default-user-sim.perf.ts --export 2>&1 && jq -e '.testScripts[].iterationResults[].stepResults[] | select(.status == \"failed\") | .name' reports/default-user-sim.perf/*/data.json >/dev/null && exit 1 || exit 0"] + restartPolicy: Never