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 2 1708
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.stopa llspam.net> wrote in message
news:1g******** *************** *********@4ax.c om... 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
On Fri, 22 Aug 2003 12:04:04 -0700, "Peter Rilling"
<pe***@nospam.r illing.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 a comment from anyone, so I'm going
to try here.
The quick rundown is that if you compile a project in Release, then in
Debug, and then again in Release, it crashes that last time.
It could be various things, I'm sure, but it's 100%...
|
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 should
configured to work, how memory is shared or not, etc. I can not seem
to find any good links to this information.
Thanks,
Mike
|
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 can
be used, as in
csc prog1.cs prog2.cs /main:prog2ClassContainigMain (the code details are
mine)
Then he goes on to explain how to do the same thing when using Visual C#
|
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 to the application world. We may
wait for a suitable popular resolution and jump to that version in the
future. There's already a rift between PHP4 and PHP5, and then further
developments such as these create another, splitting the camp into 4....
|
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??
| |
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(). So far, so good.
But I use these core classes from a bunch of different places.
Sometimes from within a CherryPy server, sometimes batch jobs run from
a command line, sometimes from Windows services (also written in
|
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 created by a C++/CLI
multiple configuration project:: Debug, Release, DebugPlus, and
ReleasePlus Assembly.dll, respectively.
So far I could not find a way to do this.
|
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: passing arg 2 of `hungarian_init' from incompatible
pointer type
vote.c: In function `main':
vote.c:254: warning: passing arg 2 of `hungarian_init' from incompatible
pointer type
|
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 I'm testing. I figured that this
was something that a script could probably do pretty easily, given all
the various possibilites.
I started creating a dictionary of all the settings, where each key
has a value that is a list of the possible...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |