473,387 Members | 1,572 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,387 software developers and data experts.

NUnit & Porject Deployment

Hi All,

I'm starting a new project and want to separate my NUnit testing stuff
so I can perform testing in the debug version but not have testing
code deployed in the Release build. I vaguely remember seeing an
article on this somewhere but can't find it now. Can anyone point me
to a resource that would explain how to do this? I'm using VS 2005.

Thanks,
Steve
Nov 1 '07 #1
2 1460
On Nov 1, 1:58 pm, Steve <kil...@harpservices.comwrote:
Hi All,

I'm starting a new project and want to separate my NUnit testing stuff
so I can perform testing in the debug version but not have testing
code deployed in the Release build. I vaguely remember seeing an
article on this somewhere but can't find it now. Can anyone point me
to a resource that would explain how to do this? I'm using VS 2005.

Thanks,
Steve
I always put the NUnit tests in a seperate assembly, so i have two
projects. If you need to test internally visible members, you can add
the InternalsVisibleTo assembly attribute to the assembly to be tested.

Nov 1 '07 #2
Yeah, you don't want your NUnit stuff going out with a (client) deploy.

So put it in its own assembly.

Discussion:
http://blogs.msdn.com/jaybaz_ms/arch...11/153978.aspx
"Steve" <ki****@harpservices.comwrote in message
news:tl********************************@4ax.com...
Hi All,

I'm starting a new project and want to separate my NUnit testing stuff
so I can perform testing in the debug version but not have testing
code deployed in the Release build. I vaguely remember seeing an
article on this somewhere but can't find it now. Can anyone point me
to a resource that would explain how to do this? I'm using VS 2005.

Thanks,
Steve

Nov 1 '07 #3

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

Similar topics

0
by: Mike | last post by:
I found this message posted from last year: I'm using NUnit to test my assembly. When my assembly runs (.exe) normally it uses it's .config file, but when I test my assembly using NUnit it...
4
by: Frank Rizzo | last post by:
I have a DLL that relies on an XML file (that's in the same folder as the DLL) to read some startup information. When I test my DLL, it seems like NUnit actually copies the DLL into some temp...
0
by: Ray Tayek | last post by:
hi, getting a: .\Stdafx.cpp : fatal error C1192: #using failed on 'i: nunit\samples\cpp-sample"' 'The filename, directory name, or volume label syntax is incorrect.' nunit is installed in...
2
by: Michael Kalika | last post by:
Hi, We have developed a VSTO 2005 Excel application and we would like to leverage ClickOnce deployment mechanism for distribution of this application. How can we do that? I was digging in MSDN...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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 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.