diff options
author | 2024-05-27 16:06:59 +0100 | |
---|---|---|
committer | 2024-05-27 16:06:59 +0100 | |
commit | 0613fbd654bacb9324e07bb2f9f4244302c48aaa (patch) | |
tree | 8fd4f5b3cfdac8f1baf59794395ac6bc9e2f6674 /k6-tests/ncmp/run-all-tests.sh | |
parent | c628542edebf7b000bc8646455378ae076bdc9c5 (diff) |
Print summary report for K6 tests
- add a generic template to print summary of k6 test results
- remove container logs since its around 50 mb
Issue-ID: CPS-2215
Change-Id: I8971fc30b9dc8be2ed16eda6755d17a91f608b48
Signed-off-by: halil.cakal <halil.cakal@est.tech>
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Signed-off-by: halil.cakal <halil.cakal@est.tech>
Diffstat (limited to 'k6-tests/ncmp/run-all-tests.sh')
-rwxr-xr-x | k6-tests/ncmp/run-all-tests.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/k6-tests/ncmp/run-all-tests.sh b/k6-tests/ncmp/run-all-tests.sh index f75cf2f70..80231b980 100755 --- a/k6-tests/ncmp/run-all-tests.sh +++ b/k6-tests/ncmp/run-all-tests.sh @@ -31,13 +31,19 @@ ALL_TEST_SCRIPTS=( \ pushd "$(dirname "$0")" || exit 1 +printf "Test Case\tCondition\tLimit\tActual\tResult\n" > summary.log + number_of_failures=0 for test_script in "${ALL_TEST_SCRIPTS[@]}"; do echo "k6 run $test_script" - k6 --quiet run "$test_script" || ((number_of_failures++)) - echo + k6 --quiet run -e K6_MODULE_NAME="$test_script" "$test_script" >> summary.log || ((number_of_failures++)) done +echo '##############################################################################################################################' +echo '## K 6 P E R F O R M A N C E T E S T R E S U L T S ##' +echo '##############################################################################################################################' +awk -F$'\t' '{printf "%-40s%-50s%-20s%-10s%-6s\n", $1, $2, $3, $4, $5}' summary.log + popd || exit 1 echo "NCMP TEST FAILURES: $number_of_failures" |