List all available test units, if none is selected.
From the command line (FreeCADCmd) only which not need the GUI. A better description Grammatically improvement Use PrintMessage
This commit is contained in:
@@ -63,6 +63,19 @@ def All():
|
||||
|
||||
return suite
|
||||
|
||||
def PrintAll():
|
||||
# Registered tests
|
||||
tests = FreeCAD.__unit_test__
|
||||
|
||||
suite = unittest.TestSuite()
|
||||
|
||||
FreeCAD.Console.PrintMessage("\nRegistered test units:\n\n")
|
||||
for test in tests:
|
||||
FreeCAD.Console.PrintMessage(("%s\n" % test))
|
||||
FreeCAD.Console.PrintMessage("\nPlease choose one or use 0 for all\n")
|
||||
|
||||
return suite
|
||||
|
||||
|
||||
def TestText(s):
|
||||
s = unittest.defaultTestLoader.loadTestsFromName(s)
|
||||
|
||||
Reference in New Issue
Block a user