Skip to content

Commit

Permalink
update coverage script
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Dec 19, 2024
1 parent 4e9d3b2 commit cfde01c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion abis/SwanAgent.json
Original file line number Diff line number Diff line change
Expand Up @@ -621,4 +621,4 @@
}
]
}
]
]
10 changes: 7 additions & 3 deletions coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ then
exit
fi

# create coverage directory for outputs
mkdir -p coverage

# generate coverage info
forge coverage \
--report lcov \
--report summary \
--no-match-coverage "(test|mock|script)"
--no-match-coverage "(test|mock|script)" \
--report-file ./coverage/lcov.info

# generate HTML report from lcov.info
genhtml lcov.info -o coverage --branch-coverage --ignore-errors inconsistent,category,corrupt
genhtml ./coverage/lcov.info -o coverage --branch-coverage --ignore-errors inconsistent,category,corrupt

# open report
open coverage/index.html
open ./coverage/index.html

0 comments on commit cfde01c

Please sign in to comment.