Skip to content

Commit

Permalink
Add a test that loads all BP code, showing true coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Ritchford committed Feb 12, 2017
1 parent cc5e2c2 commit 242dc26
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ include = bibliopixel/*/*.py, bibliopixel/*.py

[report]

fail_under = 50
fail_under = 35
skip_covered = True
3 changes: 0 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
Pillow>=2.4.0
pyserial>=2.7
spidev==2.0
46 changes: 46 additions & 0 deletions test/all_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import unittest

import bibliopixel

from bibliopixel import (
animation,
colors,
data_maker,
font,
gamepad,
gamma,
image,
layout,
led,
log,
matrix,
return_codes,
# serial_gamepad,
timedata,
util,
)

from bibliopixel.drivers import (
APA102,
LPD8806,
# SimPixel,
WS2801,
driver_base,
dummy_driver,
hue,
image_sequence,
network,
network_receiver,
network_udp,
serial_driver,
spi_driver_base,
# timedata_visualizer,
visualizer,
visualizerUI,
)


class ImportAllTest(unittest.TestCase):
def test_all(self):
# We pass just by successfully importing everything above.
pass
2 changes: 2 additions & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
pyserial>=2.7.0
coverage
flake8
phue
pytest
Pillow>=2.4.0

0 comments on commit 242dc26

Please sign in to comment.