diff --git a/openhtf/util/test.py b/openhtf/util/test.py index 54cabb7b..2c794011 100644 --- a/openhtf/util/test.py +++ b/openhtf/util/test.py @@ -660,10 +660,11 @@ class TestCase(unittest.TestCase): def __init__(self, methodName=None): super(TestCase, self).__init__(methodName=methodName) - test_method = getattr(self, methodName) - if inspect.isgeneratorfunction(test_method): - raise ValueError('%s yields without @openhtf.util.test.yields_phases' % - methodName) + if methodName != 'runTest': + test_method = getattr(self, methodName) + if inspect.isgeneratorfunction(test_method): + raise ValueError('%s yields without @openhtf.util.test.yields_phases' % + methodName) def setUp(self): super(TestCase, self).setUp() diff --git a/tox.ini b/tox.ini index 691476e0..d2096d50 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ python = [testenv] deps = -r{toxinidir}/test_reqs.txt commands = {envbindir}/python setup.py build_proto - {envbindir}/python setup.py test --pytest-cov=term-missing + {envbindir}/python setup.py test --pytest-cov=term-missing,lcov # usedevelop causes tox to skip using .tox/dist/openhtf*.zip # Instead, it does 'python setup.py develop' which only adds openhtf/ to the # path.