From: Larsson M. <Mar...@bk...> - 2004-01-08 14:09:38
|
I recently upgraded to DUnit 7.2 from 5.1. No particular reason, but the harddisk was cleaned an XP installed, so ... :*) Anyway, DUnit now never remembers what tests I have selected. That is after exiting the test-runner. After running all tests, I click the magenta button, and get just the failed tests selected. But if I then terminate the runner and restart it, it's all messed upt. All test methods are selected. If all tests in a test-case were unselected, the testcase and setup-decorator will be deselected, otherwise it will be selected. Anyone seen anything similar? An example: interface type TTestCaseSetUp = class(TTestSetup) protected procedure SetUp; override; procedure TearDown; override; end; // TTestCaseSetUp TTestWhatever = class(TTestCase) private published procedure SomeTest; procedure SomeOtherTest; end; // TTestWhatever implementation ... initialization RegisterTest('Test Whatever', TTestCaseSetUp.Create(TTestWhatever.Suite)); This would give: SomeTest and SomeOther test always selected. If both were unchecked last time I ran the program, 'Test Whatever' and Setup decorator [[d] TTestWhatever] will be cleared. M. This footnote confirms that this email message has been swept by our anti-virus solution for the presence of known computer viruses. gfh-te-200************************************************************* |