Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage workflow #33

Merged
merged 5 commits into from
Nov 14, 2023
Merged

Coverage workflow #33

merged 5 commits into from
Nov 14, 2023

Conversation

jp-imx
Copy link
Collaborator

@jp-imx jp-imx commented Nov 13, 2023

Introduced a workflow to calculate the test coverage of the codebase and post it as a comment in the PR.

@platform-sa
Copy link

platform-sa commented Nov 13, 2023

📃CI Report

Compiling 126 files with 0.8.19
Solc 0.8.19 finished in 11.60s
Compiler run �[32msuccessful!�[0m
Analysing contracts...
Running tests...

File % Lines % Statements % Branches % Funcs
script/DeployChildContracts.s.sol 0.00% (0/24) 0.00% (0/35) 100.00% (0/0) 0.00% (0/1)
script/DeployRootContracts.s.sol 0.00% (0/27) 0.00% (0/37) 0.00% (0/2) 0.00% (0/1)
script/InitializeChildContracts.s.sol 0.00% (0/10) 0.00% (0/15) 100.00% (0/0) 0.00% (0/1)
script/InitializeRootContracts.s.sol 0.00% (0/10) 0.00% (0/15) 100.00% (0/0) 0.00% (0/1)
script/Utils.sol 0.00% (0/12) 0.00% (0/16) 0.00% (0/2) 0.00% (0/2)
src/child/ChildAxelarBridgeAdaptor.sol 100.00% (16/16) 100.00% (19/19) 100.00% (6/6) 100.00% (3/3)
src/child/ChildERC20.sol 100.00% (14/14) 100.00% (15/15) 50.00% (1/2) 100.00% (7/7)
src/child/ChildERC20Bridge.sol 97.30% (108/111) 98.09% (154/157) 95.45% (63/66) 100.00% (11/11)
src/child/WIMX.sol 0.00% (0/19) 0.00% (0/22) 0.00% (0/8) 0.00% (0/6)
src/lib/EIP712MetaTransaction.sol 8.00% (2/25) 9.68% (3/31) 8.33% (1/12) 14.29% (1/7)
src/lib/EIP712Upgradeable.sol 73.33% (11/15) 60.87% (14/23) 0.00% (0/2) 50.00% (2/4)
src/root/RootAxelarBridgeAdaptor.sol 100.00% (18/18) 100.00% (24/24) 100.00% (8/8) 100.00% (3/3)
src/root/RootERC20Bridge.sol 94.74% (126/133) 96.48% (192/199) 88.57% (62/70) 100.00% (17/17)

For a full HTML report run: forge coverage --report lcov && genhtml --ignore-errors category --branch-coverage --output-dir coverage lcov.info

@jp-imx jp-imx requested a review from ermyas November 14, 2023 04:07
Exclude `test/Utils.t.sol`

Co-authored-by: Ermyas Abebe <[email protected]>
@jp-imx jp-imx requested a review from ermyas November 14, 2023 04:38
Copy link
Collaborator

@ermyas ermyas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. LGTM!

@jp-imx jp-imx merged commit 0b523d4 into main Nov 14, 2023
4 checks passed
@ermyas ermyas deleted the jp/coverage-report-workflow branch April 12, 2024 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants