From b3d806ce4b1901c44c38170473a31fb92163929c Mon Sep 17 00:00:00 2001 From: Julien Delange Date: Wed, 14 Aug 2024 12:50:43 -0400 Subject: [PATCH 1/2] add integration --- misc/integration-test-js-ts.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/misc/integration-test-js-ts.sh b/misc/integration-test-js-ts.sh index e4609107..a503b718 100755 --- a/misc/integration-test-js-ts.sh +++ b/misc/integration-test-js-ts.sh @@ -26,6 +26,13 @@ if [ $? -ne 0 ]; then exit 1 fi +FINDINGS=`jq '.runs[0].results|length' ${REPO_DIR}/results.json` +echo "Found $FINDINGS violations" +if [ $FINDINGS -lt 10 ]; then + echo "only $FINDINGS found, expecting at least 10 findings" + exit 1 +fi + echo "All tests passed" exit 0 From 8043b6604b457dbbef7cae582335eff5de6a6809 Mon Sep 17 00:00:00 2001 From: Julien Delange Date: Wed, 14 Aug 2024 12:55:53 -0400 Subject: [PATCH 2/2] Update misc/integration-test-js-ts.sh Co-authored-by: Amaan Qureshi --- misc/integration-test-js-ts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/integration-test-js-ts.sh b/misc/integration-test-js-ts.sh index a503b718..2222a4ca 100755 --- a/misc/integration-test-js-ts.sh +++ b/misc/integration-test-js-ts.sh @@ -29,7 +29,7 @@ fi FINDINGS=`jq '.runs[0].results|length' ${REPO_DIR}/results.json` echo "Found $FINDINGS violations" if [ $FINDINGS -lt 10 ]; then - echo "only $FINDINGS found, expecting at least 10 findings" + echo "only $FINDINGS found, expected at least 10 findings" exit 1 fi