Skip to content

Commit

Permalink
feat(test): add per-func code coverage output to FV
Browse files Browse the repository at this point in the history
Currently gotestsum just outputs the package-level metrics. For FV it
would be useful to see the per-func metrics for the main package.

Signed-off-by: Dominic Evans <[email protected]>
  • Loading branch information
dnwe committed Dec 27, 2024
1 parent e5d4a45 commit 68fde98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/fvt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ jobs:
nohup sudo tcpdump -i lo -w "fvt-kafka-${{ inputs.kafka-version }}.pcap" portrange 29091-29095 >/dev/null 2>&1 &
echo $! >tcpdump.pid
make test_functional
echo "## Code Coverage" >>$GITHUB_STEP_SUMMARY
echo "|Filename|Function|Coverage|" >>$GITHUB_STEP_SUMMARY
echo "|--------|--------|--------|" >>$GITHUB_STEP_SUMMARY
go tool cover -func=profile.out | sed -E -e 's/[[:space:]]+/|/g' -e 's/$/|/g' -e 's/^/|/g' >>$GITHUB_STEP_SUMMARY
- name: Stop tcpdump
if: always()
run: |
Expand Down

0 comments on commit 68fde98

Please sign in to comment.