Test: simplified command to run single test

This commit is contained in:
looooo
2017-05-03 21:32:20 +02:00
committed by wmayer
parent 5cbeb1002e
commit 7dd0b9b4e6
2 changed files with 6 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
SET(Test_SRCS
__init__.py
Init.py
BaseTests.py
Document.py

5
src/Mod/Test/__init__.py Normal file
View File

@@ -0,0 +1,5 @@
import unittest
def runTest(test_case, verbosity=2):
suite = unittest.TestLoader().loadTestsFromTestCase(test_case)
unittest.TextTestRunner(verbosity=verbosity).run(suite)