[Mono-list] RE: nunit2.0 problems
Stefan Saring
stefan.saring@epost.de
19 Dec 2002 18:24:42 +0100
thanks for your hint. but it does not work for me too. when i run the
command ...
mono nunit-console.exe test.dll
... i get this output:
NUnit version 2.0.0
Copyright (C) 2002 James W. Newkirk, Michael C. Two, Alexei A.
Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.
Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required
in <0x00019> 00 System.Security.Policy.Evidence:Merge
(System.Security.Policy.Evidence)
in <0x0006d> 00 System.Security.Policy.Evidence:.ctor
(System.Security.Policy.Evidence)
in <0x0020f> 00 NUnit.Framework.TestDomain:MakeAppDomain
(System.IO.FileInfo)
in <0x00067> 00 NUnit.Framework.TestDomain:Load (string)
in <0x000c9> 00 NUnit.Framework.TestDomain:Load (string)
in <0x000dc> 00 NUnit.Console.ConsoleUi:MakeTestFromCommandLine
(NUnit.Framework.TestDomain,NUnit.Util.ConsoleOptions)
in <0x001cb> 00 NUnit.Console.ConsoleUi:Main (string[])
so do you have an idea what's the reason for this ?
thanks,
stefan
Am Don, 2002-12-19 um 09.22 schrieb Nick Drochak:
> | -----Original Message-----
> | From: Stefan Saring [mailto:stefan.saring@epost.de]
> | Sent: Thursday, December 19, 2002 4:11 PM
> | To: ndrochak@gol.com
> | Cc: stefan.saring@epost.de
> | Subject: nunit2.0 problems
> |
> |
> | hi nick,
> |
> | i have some problems to get nunit 2.0 to work on linux. i'm using mono
> | (and mcs) 0.17. sorry, that i contact you directly, but i think such
> | problems are not for the mono mailing list...
>
> No problem, but actually other may wonder about this too, so I'm copying the
> list.
>
> | i compiled the nunit 2.0 from the mcs archive successfully. then i
> | created an test.dll or an test.exe with test classes (using
> | [TestFixture] and [Test] attributes). compilation was successfull.
> |
> | but i'm not able to get the console test runner to work with my
> | assembly. when i start ...
>
> Actually I didn't have a chance to try this myself yet. I know the compile
> works, but that's it so far.
>
> | mono nunit-console.exe /assembly:test.dll
> | or
> | mono nunit-console.exe /fixture:DummyTests /assembly:test.dll
> |
> | ... i always get error messages about missing or invalid parameters from
> | the nunit-console.
> |
> | so can you tell me what my problem is ?
>
> Try just 'mono nunit-console.exe test.dll
>
> I'm not at my hacking computer right now, but I think this is the same thing
> that baffled me at first. It's just a documentation problem on the usage of
> nunit-console.
>
> HTH,
> Nick D.
>
--
Stefan Saring
stefan.saring@epost.de (@home)
stefan.saring@saxsys.de (@work)