github.com/tencent/goom@v1.0.1/test.sh (about) 1 #! /bin/bash 2 3 cd ${WORKSPACE}/${projectPath} 4 bazel clean 5 # 单元测试命令 6 bazel coverage ... --test_arg=-test.v 7 # 收集覆盖率产物 cover.out 8 python ${WORKSPACE}/ops/ci/coverage/convert_bazel_dat_to_coverfile.py ${WORKSPACE}/${projectPath}/bazel-testlogs 9 zip coverage cover.out 10 cp coverage.zip ${testOutputDir}/coverage.zip 11 # 归置测试报告 12 zip report -r bazel-testlogs 13 cp report.zip ${testOutputDir}/report.zip