Skip to content

Commit 114c063

Browse files
Carsons-EelsSamWilsn
authored andcommitted
Update codecov
- Exclude *glacier & DAO forks from coverage - Add codecov badge to README
1 parent 408a907 commit 114c063

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Ethereum Execution Client Specifications
22

33
[![GitPOAP Badge](https://public-api.gitpoap.io/v1/repo/ethereum/execution-specs/badge)](https://www.gitpoap.io/gh/ethereum/execution-specs)
4+
[![codecov](https://codecov.io/gh/ethereum/execution-specs/graph/badge.svg?token=0LQZO56RTM)](https://codecov.io/gh/ethereum/execution-specs)
45

56
## Description
67

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ markers = [
1717
"evm_tools: marks tests as evm_tools (deselect with '-m \"not evm_tools\"')",
1818
]
1919

20+
[tool.coverage.run]
21+
omit = [
22+
"*/ethereum/*_glacier/*",
23+
"*/ethereum/dao_fork/*",
24+
]
25+
2026
[tool.docc]
2127
context = [
2228
"docc.references.context",

tox.ini

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ commands =
2222
pytest \
2323
-m "not slow" \
2424
-n auto --maxprocesses 5 \
25-
--cov=ethereum --cov-report=term --cov-report "xml:{toxworkdir}/coverage.xml" \
25+
--cov-config=pyproject.toml \
26+
--cov=ethereum \
27+
--cov-report=term \
28+
--cov-report "xml:{toxworkdir}/coverage.xml" \
29+
--no-cov-on-fail \
30+
--cov-branch \
2631
--ignore-glob='tests/fixtures/*' \
2732
--basetemp="{temp_dir}/pytest"
2833

0 commit comments

Comments
 (0)