possible contribution: a visual studio c# express edition project template that allows debugging nunit tests in that environment

Asked by Andy Mudrak

Hi,

I just recently created a project template in MS Visual Studio 2010 C# Express, and wanted to share it with you guys.

Basically, the project is a Windows Forms project, references the NUnit GUI runner DLL, and runs the AppEntry.Main() method with "/noload" and the current executing assembly. (There's no actual forms of its own in the project). It also provides a sample test fixture class, of course.

Since you cannot attach processes for debugging in MS Visual Studio 2010 C# Express, creating an executable project inside the development environment lets you debug as you would a normal project. All the developer then has to do is debug the project as they normally would any other project in VS, and when it runs, use NUnit as one normally would via GUI.

Is there a good way to share this with you guys, and, if not the template itself, at least the procedure for the documentation?

Thanks,
--
Andy

Question information

Language:
English Edit question
Status:
Answered
For:
NUnit V2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Charlie Poole (charlie.poole) said :
#1

Hello Andy,

This is the approach described in an old blog entry of mine... http://nunit.org/blogs/?p=28

I never considered creating a template for it, mostly because I didn't know that Express supported templates. :-)

My suggestion is to create an entry in our wiki, under extensions - see http://nunit.org/wiki/doku.php?id=nunit:extensions

To add your own project, simply create a page in the extras namespace and follow the template that is displayed.

If you don't have a convenient place to put your download, we can put it on NUnit, but if it's likely to change it will be simpler to use a hosting site like github.

Charlie

Can you help with this problem?

Provide an answer of your own, or ask Andy Mudrak for more information if necessary.

To post a message you must log in.