[tests] Add framework for unittests

This commit is contained in:
Tobias Witek 2016-11-05 07:54:16 +01:00
parent 9da9fdaaa5
commit df27355977
3 changed files with 22 additions and 0 deletions

12
runtests.py Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env python
import unittest
if __name__ == "__main__":
suite = unittest.TestSuite()
loader = unittest.TestLoader()
suite.addTest(loader.discover("tests/"))
unittest.TextTestRunner(verbosity=2).run(suite)
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4

0
tests/__init__.py Normal file
View file

10
tests/test_config.py Normal file
View file

@ -0,0 +1,10 @@
import unittest
import bumblebee.config
class TestConfigCreation(unittest.TestCase):
def setUp(self):
pass
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4