Renaming a test-case or test-method - Remove previous one

Issue #69 closed
Jo Claes created an issue

When renaming a test-case or test-method the previous keeps appearing in the GUI unless you click on the play button.

I'm currently using the cycle that a save triggers tests and unless I click on the run all tests the renamed/removed tests keep appearing.

Would be nice if this could be fixed that would made it a truly beyond awesome tool, now it is like a truly beyond awesome -1 tool :D

Comments (2)

  1. Stefan Glienke repo owner

    Just add a call to ClearTests after the GetTests in the constructor of the listener for the framework you are using.

  2. Jo Claes reporter

    I'm using the default ones

    begin TestInsight.DunitX.RunRegisteredTests; TestInsight.Dunit.RunRegisteredTests; end.

    If I add a call to clear would that not result in clearing the results of the other framework.

    I could choose one and make sure it is always mentioned the first, but then I need to have some dummy test for that framework, because having no tests for that framework results in a NoTestsException

    So something like this could be nice.

    begin TestInsight.Client.ClearResults; TestInsight.DunitX.RunRegisteredTests; TestInsight.Dunit.RunRegisteredTests; end.

  3. Log in to comment