[ci][coverage] show details (#659)
This commit is contained in:
parent
e6342743f8
commit
7349bd0db8
|
@ -4,7 +4,7 @@ on:
|
|||
pull_request_target:
|
||||
branches:
|
||||
- main
|
||||
- fix_coverage
|
||||
- fix_coverage_show
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -43,7 +43,7 @@ jobs:
|
|||
./struct_pack_test
|
||||
./struct_pack_test_with_optimize
|
||||
llvm-profdata merge -sparse test_ylt-*.profraw -o test_ylt.profdata
|
||||
llvm-cov show coro_io_test coro_rpc_test easylog_test struct_pack_test struct_pack_test_with_optimize -instr-profile=test_ylt.profdata -format=html -output-dir=../../.coverage_llvm_cov -ignore-filename-regex="thirdparty|asio|src" -show-instantiations=false
|
||||
llvm-cov show coro_io_test -object coro_rpc_test -object easylog_test -object struct_pack_test -object struct_pack_test_with_optimize -instr-profile=test_ylt.profdata -format=html -output-dir=../../.coverage_llvm_cov -ignore-filename-regex="thirdparty|asio|src" -show-instantiations=false
|
||||
echo "Done!"
|
||||
|
||||
- name: Upload Coverage Results
|
||||
|
@ -58,7 +58,7 @@ jobs:
|
|||
echo "Code Coverage Report" > tmp.log
|
||||
echo "for detail, [goto summary](https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/actions/runs/${{github.run_id}}) download Artifacts `llvm-cov`" >> tmp.log
|
||||
echo "\`\`\`" >> tmp.log
|
||||
llvm-cov report coro_io_test coro_rpc_test easylog_test struct_pack_test struct_pack_test_with_optimize -instr-profile=test_ylt.profdata -ignore-filename-regex="thirdparty|asio|src" -show-region-summary=false >> tmp.log
|
||||
llvm-cov report coro_io_test -object coro_rpc_test -object easylog_test -object struct_pack_test -object struct_pack_test_with_optimize -instr-profile=test_ylt.profdata -ignore-filename-regex="thirdparty|asio|src" -show-region-summary=false >> tmp.log
|
||||
echo "\`\`\`" >> tmp.log
|
||||
|
||||
- name: Create Comment
|
||||
|
|
|
@ -80,7 +80,6 @@ TEST_CASE("test basic") {
|
|||
easylog::set_min_severity(Severity::DEBUG);
|
||||
|
||||
ELOG_INFO << dummy_t{};
|
||||
|
||||
std::unique_ptr<int> ptr(new int(42));
|
||||
ELOG_INFO << ptr.get();
|
||||
ELOG_INFO << 42 << " " << 4.5 << 'a' << Severity::DEBUG;
|
||||
|
|
Loading…
Reference in New Issue