473,395 Members | 2,796 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,395 software developers and data experts.

Multiple configurations with various mains

I didn't get any good answers to my previous question about unit testing,
so let me rephrase the question:

As near as I can see, it's possible to add arbitrary configurations to a C#
project in Visual Studio 2003. And it's possible to have multiple main
functions within a project (but not within a module), and use different
configurations to build different versions with different mains.

What I'm less clear about is how easy or difficult it may be for one
configuration to build an executable, and another to build a library. Is
this a reasonable thing to attemp?

And finally, is this a reasonable, simple approach to doing unit testing,
assuming that there is no need for complicated results analysis? The sole
purpose is to be able to write a module and test it in isolation before
moving on to the next module, not to do large scale regression testing on
the entire project.

Thanks,

Gary
Nov 15 '05 #1
2 1701
First, it is rather easy to switch between a library and an application.
All you do is change the property setting that controls this.

Second, don't unit test this way. Rather you should download something like
nUnit that will provide an actual framework for you to test with.

http://nunit.org/

"Gary Feldman" <ga*************@ziplink.stopallspam.net> wrote in message
news:1g********************************@4ax.com...
I didn't get any good answers to my previous question about unit testing,
so let me rephrase the question:

As near as I can see, it's possible to add arbitrary configurations to a C# project in Visual Studio 2003. And it's possible to have multiple main
functions within a project (but not within a module), and use different
configurations to build different versions with different mains.

What I'm less clear about is how easy or difficult it may be for one
configuration to build an executable, and another to build a library. Is
this a reasonable thing to attemp?

And finally, is this a reasonable, simple approach to doing unit testing,
assuming that there is no need for complicated results analysis? The sole
purpose is to be able to write a module and test it in isolation before
moving on to the next module, not to do large scale regression testing on
the entire project.

Thanks,

Gary

Nov 15 '05 #2
On Fri, 22 Aug 2003 12:04:04 -0700, "Peter Rilling"
<pe***@nospam.rilling.net> wrote:
First, it is rather easy to switch between a library and an application.
All you do is change the property setting that controls this.

Second, don't unit test this way. Rather you should download something like
nUnit that will provide an actual framework for you to test with.

http://nunit.org/


The limited quality of the nUnit documentation doesn't do much to convince
me that it's a better approach. Telling me it's a "unit testing framework
for all .Net languages" doesn't tell me anything about what it does and
how. And as near as I can tell, it has no Visual Studio integration.

But to clariry what I said in my original note, I'm not interested in
suggestions to use this or that. I'm interested in comparisons between
them.

Gary
Nov 15 '05 #3

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

Similar topics

0
by: A | last post by:
(This is a repost from the vsnet.ide NG. No one there answered, so I'm hoping someone here might be able to give some insight) ----------------------------- I haven't been able to get an answer or...
11
by: Mike | last post by:
Looking to find any information on how to properly configure multiple instances of DB2. This is on Win2k db2 ver 7.2. I am basically looking for information on how the multiple instance settings...
5
by: Victor | last post by:
In his book "Programming Microsoft Windows with C#", page 42, Petzold deals with the case of a project with multiple Mains. He explains that when compiling in the command line the argument /main...
10
by: Rich Kucera | last post by:
Holding all versions at 5.0.4, Multiple stacks with multiple-version configurations inevitable Will have to wait to see what the impact of problems such as http://bugs.php.net/bug.php?id=33643 ...
9
by: pranav.choudhary | last post by:
I hope the question is not silly. 1. Can there me more than one main in a C program. 2. Can main take more arguments thac argc and argv. If yes then whar are they meant for??
1
by: Chris Curvey | last post by:
Hi all, I've apparently tied myself up a bit using the logging package. In my project, I have a core set of model and controller classes that set up their logging using logging.fileConfig()....
0
by: Dmitrii | last post by:
My C# project has 4-configuration: Debug, Release, DebugPlus, and ReleasePlus. In each of these configurations the C# program should consume (be "linked" to) a different Assembly.dll build...
11
by: a | last post by:
Don't know why this compilation generated, I'm sure no 2 mains exist: make votei gcc vote.c datamanager.c -o votei vote.c -L. -lhungarian vote.c: In function `main': vote.c:254: warning:...
14
by: bjorklund.emil | last post by:
Hello pythonistas. I'm a newbie to pretty much both programming and Python. I have a task that involves writing a test script for every possible combination of preference settings for a software...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.