473,394 Members | 4,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Visual Studio Unit Test in large Solution - Layout

I was wonder if there is any protocol or suggestions on how to setup unit
testing projects in large solution???

If you have a large solution of say 50 projects and add a project for every
unit test it could get overwhelming - is there some standards on how to set
this up???
Has anyone integrated this into Continuous Integration ???

Jun 27 '08 #1
2 2576
On Jun 11, 7:16*am, sippyuconn <sippyuc...@newsgroup.nospamwrote:
I was wonder if there is any protocol or suggestions on how to setup unit
testing projects in large solution???

If you have a large solution of say 50 projects and add a project for every
unit test it could get overwhelming - is there some standards on how to set
this up???

Has anyone integrated this into Continuous Integration ???

I use NUnit and what I do is add a project to the solution that is
used exclusively as a container for unit tests. I then reference the
other projects and write unit tests that excersise the public API from

I have toyed with the idea of adding unit tests directly to each
individual project and using the conditional compilation mechanisms
for determining whether they should be included in a release or debug
build. Has anyone else had a good experience with this method?
Jun 27 '08 #2
Hi Sippyuconn,

Generally speaking, we create a test project for a project to be tested. So
if you have 50 projects, you create 50 test projects. Each test project
contains test classes as many as the classes in the project to test. Each
test class in the test project contains test methods as many as the methods
in the class to test.

To create a test project for a project, open the code editor for a class in
the project and right-click the namespace and select 'Create Unit Tests'.

To manage large numbers of tests, you can use the Test Manager window to
organize tests into hierarchical structure. This structure consists of test
lists, which helps to have the capability of visualizing the tests in
groups or lists. You can also run the tests in a list by first selecting
the list in the Visual Studio IDE, or you can run the tests in a list using
the command-line test utility.

For more information on generating Unit Tests and managing large numbers of
tests, see the following MSDN documents:
'How to: Generate a Unit Test'

'Walkthrough: Managing Tests Using Lists and Properties'

Hope this helps.
If you have any question, please feel free to let me know.

Linda Liu
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:

Get notification to my posts through email? Please refer to

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: TestDriven.NET | last post by:
TestDriven.NET, the FREE one-click unit testing add-in for Visual Studio .NET is now available: http://www.testdriven.net/news.htm TestDriven.NET makes it easy to run unit tests with a single...
by: Richard Blewett [DevelopMentor] | last post by:
I've just seen on Eric Gunnerson's blog that C# is getting Edit and Continue in Whidbey. That will please alot of people - although me, I have mixed feelings about it ;-) ...
by: yuanliu1 | last post by:
Hi, I am debugging my code of visual c++ 6.0. I found it is extremely slow to run after the code is compiled as "debug" mode and OK as "release mode", I would say the difference is around 10x....
by: cmay | last post by:
I have been looking on and off for the past 6 months or so for some kind of guidance for creating asp.net unit tests with Visual Studio Team System, but I have yet to find anything significant. ...
by: usenet | last post by:
I have a large .Net solution that includes several projects and a large number of unit tests. I find that if I 1) Run my tests 2) Find a problem in a unit test 3) Set some breakpoints to help...
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
I'm using Visual Studio 2005 Team Edition for Software Developers. I've created new a test project and tests using the wizard under Test -New Test... That seemed to work. I checked in my new...
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
by: RRick | last post by:
I have a unix C++ project that needs to be converted over to windows visual studio. I'm not sure of the exact version of VS, but it's a recent version, probabIy 2003 or 2005. I would like the...
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I am familiar with unit testing but have to implement in a large solution of 100 projects - my concern is Adding Unit test will bloat the solution - taking more time to get all code from...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.