testtools-dev team mailing list archive
-
testtools-dev team
-
Mailing list archive
-
Message #00110
[Bug 657780] Re: Per-test decorator syntax for test runner
This would be nice at many scopes:
- test
- class
- module [perhaps spelt via load_tests at this scope]
- testscenarios
** Changed in: testtools
Status: New => Triaged
** Changed in: testtools
Importance: Undecided => Wishlist
--
Per-test decorator syntax for test runner
https://bugs.launchpad.net/bugs/657780
You received this bug notification because you are a member of testtools
developers, which is subscribed to testtools.
Status in testtools: Triaged
Bug description:
It would be really nice to be able to specify a test runner (e.g. RunTest) on a per-test basis using decorator syntax. That way tests with special running needs would not have to be split into separate classes. Ideally, this would not require the use of a special loader.
e.g.
{{{
class TestFoo(TestCase):
def test_normal(self):
pass
@use_runner(DeferredRunTest)
def test_deferred(self):
return defer.succeed(None)
}}}
Spelling can vary.
References