VSoft Technologies Blogs

rss

VSoft Technologies Blogs - posts about our products and software development.

Thanks to a contribution from Robert Love, DUnitX now sports a shiny new IDE Wizard for creating Test projects and Test Units. 

Before you install and use the wizard, there is one thing I recommend you do. In your Delphi IDE, add and Environment variable DUNITX and point it at your copy of the DUnitX source. The reason for doing this, is that when the wizard creates a project, it adds $(DUNITX) to the project search path. This avoids hard coding the DUnitX folder in the project search path, and also avoids installing it in your global library path (I have nothing other than the defaults installed there, I always use the project search path, makes it easier to share projects with other devs). 

 

Once you have that done (I'm assuming you have pulled down the latest source from GitHub), open the project group (.grouproj) for your IDE version and build the project group. Then right click on the wizard project and click on install :

If the package installs successfully then we are ready to use the wizard. Close the project group, and invoke the File\New\Other dialog, you will see the DUnitX Project listed 

 

 

You might like to Customize your File\New menu, I made DUnitX prominent on mine (in part to remind myself to create unit tests first!) :

 

Invoking the wizard will show a simple dialog :

 

The options are pretty self explainatory, so I won't go into them here. The wizard generates a console application, once we have a gui runner (being worked on) we'll update the wizard to add options for that.

DUnitX is open source, get it from GitHub - contributions are welcome. We also have a Google Plus Community for DUnitX.

 

Showing 1 Comment

Avatar
Vincent Parrett 5 years ago

I forgot to mention, Robert posted some ideas he is working on for DUnitX - http://robstechcorner.blogspot.com.au/2013/12/dunitx-and-my-plans.html



Comments are closed.