By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,201 Members | 922 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,201 IT Pros & Developers. It's quick & easy.

UI to Control Unit Tests

P: n/a
I'm working in Visual Studio 2005 Team Edition for Software Developers

I've used the wizard under the Test menu to create a bunch of unit tests.
When I click "Test -Start Selected Test Project with Debugger" the tests
run.

I'd really like to create a WinForm User Interface to run the Unit Tests.
The idea would be to give the user a list of Unit Tests in a table, and let
the user select any combination of tests they like. The user then clicks Run,
the tests run, and the user sees the results.

My first thought is to have the WinForm project generate a batch file that
runs the selected tests using MSTest at the command line.

Before I go down this road, can anyone point me toward articles or ideas on
better ways to do this? This approach seems awfully 15 years ago.

Thanks,
Randy

Oct 24 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
randy1200 <ra*******@discussions.microsoft.comwrote:
I'm working in Visual Studio 2005 Team Edition for Software Developers

I've used the wizard under the Test menu to create a bunch of unit tests.
When I click "Test -Start Selected Test Project with Debugger" the tests
run.

I'd really like to create a WinForm User Interface to run the Unit Tests.
The idea would be to give the user a list of Unit Tests in a table, and let
the user select any combination of tests they like. The user then clicks Run,
the tests run, and the user sees the results.

My first thought is to have the WinForm project generate a batch file that
runs the selected tests using MSTest at the command line.

Before I go down this road, can anyone point me toward articles or ideas on
better ways to do this? This approach seems awfully 15 years ago.
I guess my first question would be why you want to do it in the first
place. What does VS not do that you want to do?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Oct 24 '07 #2

P: n/a
randy1200 wrote:
I'm working in Visual Studio 2005 Team Edition for Software Developers

I've used the wizard under the Test menu to create a bunch of unit tests.
When I click "Test -Start Selected Test Project with Debugger" the tests
run.

I'd really like to create a WinForm User Interface to run the Unit Tests.
The idea would be to give the user a list of Unit Tests in a table, and let
the user select any combination of tests they like. The user then clicks Run,
the tests run, and the user sees the results.

My first thought is to have the WinForm project generate a batch file that
runs the selected tests using MSTest at the command line.

Before I go down this road, can anyone point me toward articles or ideas on
better ways to do this? This approach seems awfully 15 years ago.

Thanks,
Randy
Have you thought about using another unit test runner? NUnit can run
MSTest unit tests and its UI offers the possibility to select tests as
you describe it.
Testdriven.net has no UI, but is highly integrated and lets you run
tests on method, class, file, folder project and solution level.

HTH,
Andy
--
You can email me by removing the NOSPAM parts below:
xm**********@gmxNOSPAM.net
Oct 24 '07 #3

P: n/a
On Oct 24, 11:11 pm, Andreas Mueller <m...@privacy.netwrote:

<snip>
Have you thought about using another unit test runner? NUnit can run
MSTest unit tests and its UI offers the possibility to select tests as
you describe it.
Testdriven.net has no UI, but is highly integrated and lets you run
tests on method, class, file, folder project and solution level.
There's also the free unit test runner from JetBrains (http://
www.jetbrains.com/unitrun/ - it's hard to find on the web site, IME!).
It's not quite as good as the one in the full edition of ReSharper,
which is *well* worth getting IMO, but hey, it's free :)

Unfortunately I believe MSTest tests aren't supported - at least not
yet!

Jon

Oct 25 '07 #4

P: n/a
There are people around here who don't have Visual Studio who want to be able
to run tests. Writing a WinForm front end for Unit Tests created in Visual
Studio should not be a big deal. I find it hard to believe I'm the first
person to go down this road, so I thought there might be some articles or
insights on the subject.

"Jon Skeet [C# MVP]" wrote:
randy1200 <ra*******@discussions.microsoft.comwrote:
I'm working in Visual Studio 2005 Team Edition for Software Developers

I've used the wizard under the Test menu to create a bunch of unit tests.
When I click "Test -Start Selected Test Project with Debugger" the tests
run.

I'd really like to create a WinForm User Interface to run the Unit Tests.
The idea would be to give the user a list of Unit Tests in a table, and let
the user select any combination of tests they like. The user then clicks Run,
the tests run, and the user sees the results.

My first thought is to have the WinForm project generate a batch file that
runs the selected tests using MSTest at the command line.

Before I go down this road, can anyone point me toward articles or ideas on
better ways to do this? This approach seems awfully 15 years ago.

I guess my first question would be why you want to do it in the first
place. What does VS not do that you want to do?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Oct 25 '07 #5

P: n/a
On Oct 25, 2:01 pm, randy1200 <randy1...@discussions.microsoft.com>
wrote:
There are people around here who don't have Visual Studio who want to be able
to run tests. Writing a WinForm front end for Unit Tests created in Visual
Studio should not be a big deal. I find it hard to believe I'm the first
person to go down this road, so I thought there might be some articles or
insights on the subject.
I guess the reason it's not common is that unit tests don't normally
mean much to non-developers. Are your unit tests actually acceptance
tests etc? (Not that it's a bad idea to write those with a unit test
tool...)

To echo the comments of others, using NUnit you'd be able to run
NUnitGUI, although that's far from pleasant.

Jon

Oct 25 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.