From 0f046e9007855e1bcb1f277bfbf2e3f4ab324a35 Mon Sep 17 00:00:00 2001 From: Christoph Wedenig Date: Fri, 17 Nov 2023 12:41:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci:=20Use=20JSON=20report=20for?= =?UTF-8?q?=20testing=20failure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chart/templates/tests/test-frontend-connection.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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