Repository: trafficserver Updated Branches: refs/heads/master f0db0a245 -> f4099f3b3
Workaround skiptest limitation of multi-level subclassing Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/c29a81ac Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/c29a81ac Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/c29a81ac Branch: refs/heads/master Commit: c29a81ac4b1ebb33660716850997536d62948709 Parents: f0db0a2 Author: Thomas Jackson <[email protected]> Authored: Wed Jan 28 20:07:17 2015 -0800 Committer: James Peach <[email protected]> Committed: Thu Jan 29 11:33:55 2015 -0800 ---------------------------------------------------------------------- ci/new_tsqa/tests/test_example.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c29a81ac/ci/new_tsqa/tests/test_example.py ---------------------------------------------------------------------- diff --git a/ci/new_tsqa/tests/test_example.py b/ci/new_tsqa/tests/test_example.py index 99bba07..9593ac4 100644 --- a/ci/new_tsqa/tests/test_example.py +++ b/ci/new_tsqa/tests/test_example.py @@ -27,8 +27,9 @@ import helpers import tsqa.test_cases import tsqa.utils -# you can also skip (or conditionally skip) tests [email protected]('Not running TestNoOp, as it is a NoOp test') +# TODO: for some reason subclasses of subclasses of TestCase don't work with the +# decorator +#@helpers.unittest.skip('Not running TestNoOp, as it is a NoOp test') class TestNoOp(helpers.EnvironmentCase): ''' This is purely a documentation test @@ -42,6 +43,15 @@ class TestNoOp(helpers.EnvironmentCase): }, 'env': None, } + + @classmethod + def setUpClass(cls): + ''' + If you'd like to skip an entire test + ''' + # you can also skip (or conditionally skip) tests + raise helpers.unittest.SkipTest('Skip the entire class') + @classmethod def setUpEnv(cls, env): '''
