Skip to content

Commit

Permalink
feat: 输出测试报告xml文件
Browse files Browse the repository at this point in the history
增加测试用例输出成xml,便于后端获取测试报告数据

Log: UT输出xml报告数据
Change-Id: I313b9ed21d60b12021972dd1535b4ec5c01b79ac
(cherry picked from commit 14a2e1a)
  • Loading branch information
kegechen committed Jul 8, 2021
1 parent 9a89317 commit 0cd1d96
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test-recoverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ cd ../tests/
rm -rf $BUILD_DIR
mkdir $BUILD_DIR
cd $BUILD_DIR
qmake ../
make check

qmake .. CONFIG+=debug
export ASAN_OPTIONS=halt_on_error=0
TESTARGS="--gtest_output=xml:dde_test_report_dtkgui.xml" make check -j$(nproc)

lcov -d ./ -c -o coverage_all.info
#lcov --extract coverage_all.info $EXTRACT_ARGS --output-file coverage.info
lcov --remove coverage_all.info "*/tests/*" "*/usr/include*" "*build/src*" --output-file coverage.info
cd ..
genhtml -o $REPORT_DIR $BUILD_DIR/coverage.info

rm -rf $BUILD_DIR
rm -rf ../$BUILD_DIR
#rm -rf $BUILD_DIR
#rm -rf ../$BUILD_DIR

0 comments on commit 0cd1d96

Please sign in to comment.