TestGen.Net
Automatic NUnit test case generation!

-
Overview
TestGen.Net is derived from Edwinyeah's NUnitPartner.
Now is a open source project
at http://sourceforge.net/projects/testgennet.
As a programmer, I'm not who is willing to code repetitive routines, and when I was
doing unit testing with one of my .Net projects, I found that it really takes time and
is boring to write test cases again and again, and I started trying to find a handy tool to generate the test code for me, but finally I found that there is a lot
of such tools in the Java community, but none for .Net. This is why I developed TestGen.Net.
Even generating test cases from existing classes is not a TDD (Test Driven
Development) way, but it DOSE help with unit testing :-)
The NUnit test case generator is released to public domain and use for free, You are welcomed to send me feedbacks
with bugs reporting, enhancement suggestions, etc. All rights are reserved.
-
What's new & Change logs
Sep 29, 2005, Announcement:
NUnitPartner today become
OPEN
SOURCE, check it out at http://sourceforge.net/projects/testgennet.
Sep 07, 2005, Announcement:
NUnitPartner is going to be OPEN
SOURCE. I registered a project called "TestGen.Net" at SF.NET,
I will upload the source in a short
time when I have the time. And one who is willing to extend/maintain
the program is welcomed, just drop me
a line.
Aug 12, 2005, Version 0.6 Beta is released.
+Options to generate "execute
time calculation" code NEW!
Jul 22, 2005, Version 0.5 Beta is released.
first release of NUnitPartner.
-
Features
1. Supports popular languages including C#, VB.Net, JScript, Managed C++ and J#.
2. Options to generate test cases for a whole module, a whole class or a single method.
3. Options for outputting to files or on-screen.
4. The generated Code:
1. All necessary import statements are present.
2. Smart classes/methods/variables naming based on the tested
classes/methods/parameters.
2. All parameters of methods being tested are assigned with default values;
Also members of non-primitive type
of parameters are assigned with values.
3. Options to generate a "for loop".
4. Options to generate "execute time calculation"
code. NEW!
-
Known Issues
All the codes generated by TestGen.Net are internally generated by CodeDOM provider,
suppose there should be no error with generated code for all kinds of
languages. Anyway, I tested the generated C# code only.
-
To do
1. Add support for Delphi.Net. You know, I'm a Delphi developer under Win32 platform, even I
chose C# for .net.
2. Support other attributes supported by NUnit.
3. Try to find if there is anything TestGen.Net can do with other testing
framework, e.g. DotNetMock, etc.
4. Add syntax highlighting to on-screen output.