Re: CountTestCases fails in 2.4.1
Erik van Zijst <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
I just tried it with version 2.4.3 to make sure I'm not chasing old bugs, but that gives exactly the same exception. P.S. NUnit on mono is part of my Linux-based continuous integration process and runs on a server. As a consequence, I'm not running the NUnit GUI, but I'm spawning nunit-console.exe from NAnt. Again, note that it does work on Windows/.Net. Erik Erik van Zijst wrote: > Hi all, > > I'm using NAnt-0.85 and NUnit-2.4.1 to build and test my project. On > Windows/.Net-2.0 this works without a problem, but on > Linux/mono-1.2.5.1, NUnit keeps crashing, even before it loads the first > test case. > > NUnit keeps throwing a System.NullReferenceException when counting the > test cases: > > test: > > [exec] NUnit version 2.4.1 > [exec] Copyright (C) 2002-2007 Charlie Poole. > [exec] Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, > Alexei A. Vorontsov. > [exec] Copyright (C) 2000-2002 Philip Craig. > [exec] All Rights Reserved. > [exec] Runtime Environment - > [exec] OS Version: Unix 2.6.20.1 > [exec] CLR Version: 2.0.50727.42 ( Mono 1.2.5.1 ) > [exec] Unhandled Exception: > [exec] System.NullReferenceException: Object reference not set to > an instance of an object > [exec] Server stack trace: > [exec] at NUnit.Core.SimpleTestRunner.CountTestCases > (ITestFilter filter) [0x00000] > [exec] at NUnit.Core.DelegatingTestRunner.CountTestCases > (ITestFilter filter) [0x00000] > [exec] at NUnit.Core.DelegatingTestRunner.CountTestCases > (ITestFilter filter) [0x00000] > [exec] at (wrapper xdomain-dispatch) > NUnit.Core.DelegatingTestRunner:CountTestCases (object,byte[]&,byte[]&) > [exec] Exception rethrown at [0]: > [exec] at (wrapper xdomain-invoke) > NUnit.Core.DelegatingTestRunner:CountTestCases (NUnit.Core.ITestFilter) > [exec] at NUnit.Util.ProxyTestRunner.CountTestCases (ITestFilter > filter) [0x00000] > [exec] at NUnit.Util.AggregatingTestRunner.CountTestCases > (ITestFilter filter) [0x00000] > [exec] at NUnit.Util.AggregatingTestRunner.Run (EventListener > listener, ITestFilter filter) [0x00000] > [exec] at NUnit.ConsoleRunner.ConsoleUi.Execute > (NUnit.ConsoleRunner.ConsoleOptions options) [0x00000] > [exec] at NUnit.ConsoleRunner.ConsoleUi.Main (System.String[] > args) [0x00000] > > BUILD FAILED > > What am I doing wrong? > > regards, > Erik van Zijst > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nunit-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/nunit-users -- GIVE: Support the helpless victims of computer error. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/