mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Don't include device specific code in coverage
This commit is contained in:
parent
7880b6a11d
commit
7e3de4d6f7
37
.coveragerc
Normal file
37
.coveragerc
Normal file
@ -0,0 +1,37 @@
|
||||
[run]
|
||||
source = homeassistant
|
||||
|
||||
omit =
|
||||
homeassistant/external/*
|
||||
homeassistant/__main__
|
||||
|
||||
# omit pieces of code that rely on external devices being present
|
||||
homeassistant/components/wink.py
|
||||
homeassistant/components/*/wink.py
|
||||
homeassistant/components/zwave.py
|
||||
homeassistant/components/*/zwave.py
|
||||
homeassistant/components/*/tellstick.py
|
||||
homeassistant/components/*/wemo.py
|
||||
homeassistant/components/thermostat/nest.py
|
||||
homeassistant/components/light/hue.py
|
||||
homeassistant/components/sensor/systemmonitor.py
|
||||
homeassistant/components/notify/pushbullet.py
|
||||
homeassistant/components/media_player/cast.py
|
||||
homeassistant/components/device_tracker/luci.py
|
||||
homeassistant/components/device_tracker/tomato.py
|
||||
homeassistant/components/device_tracker/netgear.py
|
||||
homeassistant/components/device_tracker/nmap_tracker.py
|
||||
|
||||
|
||||
[report]
|
||||
# Regexes for lines to exclude from consideration
|
||||
exclude_lines =
|
||||
# Have to re-enable the standard pragma
|
||||
pragma: no cover
|
||||
|
||||
# Don't complain about missing debug-only code:
|
||||
def __repr__
|
||||
|
||||
# Don't complain if tests don't hit defensive assertion code:
|
||||
raise AssertionError
|
||||
raise NotImplementedError
|
@ -7,6 +7,6 @@ install:
|
||||
script:
|
||||
- flake8 homeassistant --exclude bower_components,external
|
||||
- pylint homeassistant
|
||||
- coverage run --source=homeassistant --omit "homeassistant/external/*" -m unittest discover tests
|
||||
- coverage run -m unittest discover tests
|
||||
after_success:
|
||||
- coveralls
|
||||
|
Loading…
x
Reference in New Issue
Block a user