Jump to content
Dave Novo

How to remember tests in VCL GUI Logger

Recommended Posts

I am a newbie to DunitX so this may be a dumb question. 

 

If I select some tests to run in the VCL GUI logger, they run fine.

When I recompile my app, all the tests are selected again, even though previously I only selected one.

Is there a way to have the VCL GUI logger remember my previous selections so I dont have to keep selecting the same things?

Share this post


Link to post

I figured it out. You have to close the TestRunner Gui properly. Since my test was failing (i.e. crashing) the GuiRunner never closed properly because I stopped running the program after the crash. I had expected that the Guirunner would save the selected tests prior to the test run started. 

Share this post


Link to post
3 hours ago, Dave Novo said:

I had expected that the Guirunner would save the selected tests prior to the test run started. 

You can always tweak the source of DUnitX.Loggers.GUI.VCL.pas to your needs. Currently the code for saving is located in FormClose. Besides extracting it to a dedicated method, it can be inserted at the beginning of RunExecute.

 

In Contributing.md you find instructions to make your enhancements available for all.

  • Like 2

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×