Re: How do addon writers deal with NUnit versions?

Stefan Bodewig <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <[email protected]>
On Fri, 30 May 2008, Charlie Poole <[email protected]> wrote:

> The problem with versions is a tough one. In theory, you should
> use only the nunit.core.interfaces assembly, but almost nobody
> does that, since it seems much simpler to inherit from the
> implementation classes in nunit.core itself.

Hmm.  XMLUnit is more of an Addon than an Addin following the
definitions on your site.  It really only adds new Assert classes and
probably (I need to check) only uses Assert itself.

My preferred usage would be to use XMLUnit as a library and don't use
its Assert classes at all, but that's not what the original authors
intended.

Anyway, my problem is not API stability but the far more annyoing
problem that people writing tests using XMLUnit 0.3.1 and NUnit 2.4.7
will get a FileLoadException since XMLUnit 0.3.1 has been compiled
against 2.4.6 (and at least I can't find a way around that apart from
releasing a new XMLUnit version whenever you release a new NUnit
version).

SomeTests.Class1.TrivialEqualsTest:
System.IO.FileLoadException : Could not load file or assembly 'nunit.framework, Version=2.4.6.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

> 2) Use or modify my nant script (http://nunit.org/?p=addins) to
> do your build.

I've seen that, thanks.

> 3) I'm hoping to make 2.5 at least a little better than 2.4 with
> regard to addins. Try it while it's in alpha and beta and join
> the nunit-developer list

Subscribed.

> PS: Something to discuss on the developer list, if you are
> interested, is whether we might want to bundle xmlunit with
> nunit.

I'll be there, but right now I think it isn't in the right shape for
it.

My plans for an XMLUnit 2.0 focus on a test framework independent
library and some test framework specific adapters - maybe the NUnit
adapter could ship with NUnit 3.x or something.  But then again I know
XMLUnit is not my top priority OSS project (I'm quite a bit involved
in other places as well), so one never knows when 2.x might be more
than vaporware.

Cheers

        Stefan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
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.