File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed
Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- # set -ex
3+ set -ex
44
55test_type=$1
6- # os=$2
7- # calculate_all_finally=$2
8-
9- # IFS=',' read -ra allosarray <<< "$os"
10-
11- # shellcheck disable=SC2145
12- # echo "This is all OS array: ${allosarray[@]}"
136
147coveragedatafile=" .coverage.$test_type "
158
169if [ " $test_type " == " unit-test" ] || [ " $test_type " == " integration-test" ];
1710then
18- # for oneos in "${allosarray[@]}" ;
19- # do
2011 coverage combine --data-file=" $coveragedatafile " .coverage." $test_type " .*
21- # done
2212elif [ " $test_type " == " all-test" ];
2313then
24- # for oneos in "${allosarray[@]}" ;
25- # do
2614 coverage combine --data-file=" $coveragedatafile " .coverage.*
27- # done
2815else
2916 echo " ❌ It doesn't support $test_type currently. Please change to use options 'unit-test', 'integration-test' or 'all-test'." && exit 1
3017fi
@@ -33,11 +20,3 @@ coverage report -m --data-file="$coveragedatafile"
3320coverage xml --data-file=" $coveragedatafile " -o coverage_" $test_type " .xml
3421cp " $coveragedatafile " .coverage
3522echo " ✅ All processing done." && exit 0
36-
37- # if [ "$calculate_all_finally" == "false" ]; then
38- # echo "✅ All processing done." && exit 0
39- # else
40- # coverage combine .coverage.*
41- # coverage xml
42- # echo "✅ All processing done." && exit 0
43- # fi
You can’t perform that action at this time.
0 commit comments