Skip to content

Commit db29ecc

Browse files
authored
Merge pull request #2 from m-Peter/remove-test-comments
Remove comments from test cases
2 parents 9d5e060 + 2761919 commit db29ecc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
- name: Install Flow CLI
2323
run: bash -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)"
2424
- name: Run tests
25-
run: flow test --cover --covercode="contracts" --coverprofile=coverage.lcov --tests/test_*.cdc
25+
run: flow test --cover --covercode="contracts" --coverprofile="coverage.lcov" tests/test_*.cdc
26+
- name: Normalize coverage report filepaths
27+
run : sh ./normalize_coverage_report.sh
2628
- name: Upload coverage reports to Codecov
2729
uses: codecov/codecov-action@v3
2830
env:

normalize_coverage_report.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sed -i 's/A.01cf0e2f2f715450.ApprovalVoting/contracts\/ApprovalVoting.cdc/' coverage.lcov
2+
sed -i 's/A.01cf0e2f2f715450.ArrayUtils/contracts\/ArrayUtils.cdc/' coverage.lcov
3+
sed -i 's/A.01cf0e2f2f715450.StringUtils/contracts\/StringUtils.cdc/' coverage.lcov
4+
sed -i 's/S.ArrayUtils/contracts\/ArrayUtils.cdc/' coverage.lcov
5+
sed -i 's/S.FooContract/contracts\/FooContract.cdc/' coverage.lcov

0 commit comments

Comments
 (0)