I forgot to add that, right now, can't find a way to get the tests in
nantcontrib to compile... TblTaskTest derives from Nant's BaseTest class,
which was modified to fit into NUnit2, and if I modify everything in
nantcontrib to suite NUnit2, I can't run the tests anymore from the
buildfile... talk about a catch 22.



----- Original Message -----
From: "Tomas Restrepo" <[EMAIL PROTECTED]>
To: "'Nant-Developers (E-mail)'" <[EMAIL PROTECTED]>
Sent: Tuesday, October 29, 2002 8:34 PM
Subject: [nant-dev] NUnit2 task assemblyname attribute problem


> Hi guys...
>
> I've been updating tonight the NAntContrib code to use the new NUnit2
tests,
> and quite quickly ran into a gotcha with the new assemblyname attibute: It
> is exactly that, an assembly name, and cannot take an assembly _file_
name.
>
> In fact, the build files for nant itself pass in an assembly file name
> instead of just an assembly name, which is wrong, and happens to work just
> because of sheer luck.
>
> The reason for this problem is that, deep inside, the nunit2 task ends up
> calling the Load() method of NUnit's TestSuiteBuilder code, which has,
imho,
> a horrible problem: It indeed takes an assembly name instead of an
assembly
> file name... a terrible design mistake in my opinion, though.
>
> Of course, the problem is that TestSuiteBuilder::Load() calls
> AppDomain::Load() inside, instead of doing the more sensible thing, which
> would be an Assembly::LoadFrom().  Of course, without this, the nunit2
> assemblyname attribute is useless unless the DLL containing the test
classes
> is also located _in the same directory as nant's binaries_.
>
>
> Then again, this is just my opinion.
>
> I don't know anything about NUnit's internals, nor do I know what they
> pretended to do, but right now, this doesn't look good and puts a bit of a
> showstopper in nant :(
> --
> Tomas Restrepo
> [EMAIL PROTECTED]
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nant-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to