python-diamond / Diamond

Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
http://diamond.readthedocs.org/
MIT License
1.74k stars 601 forks source link

Collect test coverage results for collectors too #627

Open shortdudey123 opened 7 years ago

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 24.964% when pulling 58a004763bbdd330b5506793495e5e62336de229 on expand_coverage_settings into 1c0935bdd3752b11a3d0a5039fd1bb550be93456 on master.

shortdudey123 commented 7 years ago

Looks like each collector also needs __init__.py to be considered by coverage

Only importable files (ones at the root of the tree, or in directories with a __init__.py file) will be considered. ~ http://coverage.readthedocs.io/en/coverage-4.3.4/source.html#execution

$ find src -name __init__.py
src/diamond/__init__.py
src/diamond/handler/__init__.py
src/diamond/utils/__init__.py
$