Hi, Would this feature make the 2.2 release if I submit a patch? I need to know for my own projects. It is only two new functions. It allows you to register tests and automatically builds the TestSuite structure for you... Before you had to manually create the TestSuite's.
See the attached image for an example of one of these register lines: Any combination is possible. if gTIOPFTestManager.TestNonPersistentClasses then RegisterTest('SuiteA', ATestCaseClass); if gTIOPFTestManager.TestNonPersistentClasses then RegisterTest('SuiteA.SuiteB.SuiteC', ATestCaseClass); if gTIOPFTestManager.TestNonPersistentClasses then RegisterTest('SuiteA/SuiteB/SuiteC', ATestCaseClass{$IFNDEF FPC}.Suite{$ENDIF}); if gTIOPFTestManager.TestNonPersistentClasses then RegisterTest('SuiteA\SuiteB\SuiteC', ATestCaseClass{$IFNDEF FPC}.Suite{$ENDIF}); if gTIOPFTestManager.TestNonPersistentClasses then RegisterTest('SuiteA.SuiteB\SuiteC/SuiteD', ATestCaseClass); The SuitePath (first parameter of RegisterTest) can be any combination of '.' or '\' or '/' to delimit a TestSuite. They will be created as required and reused if they already exist. -- Graeme Geldenhuys General error, hit any user to continue.
<<attachment: FPCUnit_nested_test.png>>
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal