update default mode.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
ac71f41f45
commit
8a0772849a
|
@ -41,6 +41,7 @@ EOF
|
||||||
testing() {
|
testing() {
|
||||||
test -f ${junit_report} && rm -f ${junit_report}
|
test -f ${junit_report} && rm -f ${junit_report}
|
||||||
coverage_mode=$@
|
coverage_mode=$@
|
||||||
|
output "Running ${coverage_mode} mode for coverage."
|
||||||
for pkg in $packages; do
|
for pkg in $packages; do
|
||||||
f="$workdir/$(echo $pkg | tr / -).cover"
|
f="$workdir/$(echo $pkg | tr / -).cover"
|
||||||
output "Testing coverage report for ${pkg}"
|
output "Testing coverage report for ${pkg}"
|
||||||
|
@ -78,8 +79,8 @@ case "$1" in
|
||||||
"")
|
"")
|
||||||
show_help ;;
|
show_help ;;
|
||||||
testing)
|
testing)
|
||||||
mode=$2
|
mode="set"
|
||||||
test -z $mode && mode="set"
|
test -z $2 || mode=$2
|
||||||
testing $mode ;;
|
testing $mode ;;
|
||||||
coverage)
|
coverage)
|
||||||
generate_cover_report ;;
|
generate_cover_report ;;
|
||||||
|
|
Loading…
Reference in New Issue