How can I customize the DUnit test case classes generated by the Test Case wizard?

I don’t think there is any documentation on this.
If there is, David Intersimone at Embarcadero is who I’d ask for it.

Failing that, there are two options you might try.

  1. Create some “bare” unit tests with what you want and save them as templates
  2. Write your own wizard in Delphi to create unit tests

The unit tests are only text files, so the second option wouldn’t be any harder than trying to hack the wizard. You could create your own unit test wizard in Delphi and hook it into the tools menu quite easily.

If you wanted to, you could have it read your class files to create test skeletons for all of your methods, or create a command line tool to generate them.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)