diff options
author | Daniel Hanrahan <daniel.hanrahan@est.tech> | 2024-05-28 10:16:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2024-05-28 10:16:20 +0000 |
commit | 1e4bf345c21586491ee4767ed9f44de22a99a8c2 (patch) | |
tree | 3a660fba69b3d44331c709ccc0e489fd1b22b970 /k6-tests/ncmp/run-all-tests.sh | |
parent | c69ce470ecabedc9df59b9a9d3888338850fd502 (diff) | |
parent | 0613fbd654bacb9324e07bb2f9f4244302c48aaa (diff) |
Merge "Print summary report for K6 tests"
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 f75cf2f701..80231b9809 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" |