Re: The NUnit reference goes away with Clean builds

"Kelly Anderson" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <[email protected]>
On Thu, Apr 3, 2008 at 11:53 AM, Charlie Poole
<[email protected]> wrote:
> Hi Kelly,
>
>  > If NUnit isn't installed, then how do you run your tests? Do
>  > you reinstall NUnit as part of your build process? If so,
>  > then how do you do your build?
>  >
>  > Perhaps my question wasn't clearly stated, I'm not building
>  > NUnit, I'm using NUnit in my build to run NUnit tests as part
>  > of my continuous integration. When I do a clean, the
>  > references to NUnit inside my Test projects get messed up.
>  > I'm trying to figure out how to set it up so that those
>  > references don't get blown away.
>
>  Yes, that was understood. What I'm saying is that NUnit does
>  not require installation via the MSI. You just need to have
>  a copy of it somewhere that you reference from your tests
>  and which you use to run the tests. You can just put it into
>  source control in some sort of tools directory, which you
>  update as needed on the server.

Ok... this makes sense. I assume then that you are talking about:
NUnit-2.4.7-net-2.0.zip

and unzipping it into some directory that is used during the build.

Developers might still install NUnit, and run things locally in the
GUI, but not as part of their build necessarily.

>  Doing a clean shouldn't change the references in your project,
>  although it will remove the copies of nunit.framework that
>  are in your bin directories, so that may be what you meant.
>  I don't have this problem, since I don't run builds on the
>  server in my source tree - I generally copy to a deployment
>  directory first. Since copying the framework is a step in
>  the build/test process, it's always there.

ok, I understand most of what you're saying here except the "I don't
run builds on the server in my source tree" part... I guess I don't
see why you would have a build server if you didn't do builds on it,
but maybe I'm missing something.

In any case, I think I have something to try now. Thanks for the ideas.

>  Brad describes an alternate approach which may work better
>  if you are testing right in the VS source tree.

I've looked at that as well, thanks!

-Kelly

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.