From 4a1a24fc0f7cb2722dfaa0e70c25dd5abd47037c Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Mon, 4 Nov 2024 20:22:23 +0200 Subject: [PATCH] test: added also a llvm-cov report command to the 3_cov.sh script --- utils/test-coverage/3_cov.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/test-coverage/3_cov.sh b/utils/test-coverage/3_cov.sh index fd3d00e3351..acc06e1b415 100755 --- a/utils/test-coverage/3_cov.sh +++ b/utils/test-coverage/3_cov.sh @@ -1,3 +1,7 @@ #! /bin/sh +# shows detailes line by line coverage in the source code (very long output): llvm-cov show -Xdemangler=rustfilt target/debug/nargo -instr-profile=noir_tests.profdata -show-line-counts-or-regions -show-instantiations + +# shows a summary of the coverage in a given cargo package (compiler/noirc_frontend in this example): +llvm-cov report --use-color --instr-profile=./noir_tests.profdata --object target/debug/nargo --sources `find compiler/noirc_frontend -name "*.rs"`