5 TestCase adaptor for providing a 'unittest' compatible interface to 'lit' tests.
8 class UnresolvedError(RuntimeError):
11 class LitTestCase(unittest.TestCase):
12 def __init__(self, test, lit_config):
13 unittest.TestCase.__init__(self)
15 self._lit_config = lit_config
18 return self._test.getFullName()
20 def shortDescription(self):
21 return self._test.getFullName()
24 tr, output = self._test.config.test_format.execute(
25 self._test, self._lit_config)
27 if tr is Test.UNRESOLVED:
28 raise UnresolvedError(output)