Re: Problem running tests from a network share
"Butler, Tony (London)" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <289EBA527A6A47418295E92F70ACFB32011C4A26@MLLNA225MB.emea.win.ml.com> |
Hi Charlie, Full trust is granted to the network share, yes. I want to run the tests under cruisecontrol, so there will be no logged on user and hence no mapped drive (which only happens at login as far as I know), so that is not an option. Also, the error (object reference not set to an instance of an object) happens on this line: result.Accept(visitor); in the ResultSummarizer, suggesting that result is not initialised. Shouldn't a code access error be caught much sooner? The console runner has already run the tests apparently, since this line in the ConsoleUi.Execute: result = testRunner.Run( collector, testFilter ); Has already run. Wouldn't a code access security violation have happened when this was being executed, rather than when the results are being output? thanks Tony -----Original Message----- From: Charlie Poole [mailto:[email protected]] Sent: 20 March 2008 17:32 To: Butler, Tony (London); [email protected] Subject: RE: [Nunit-users] Problem running tests from a network share You can't load the tests from a network share unless you have first granted full trust to that location. Depending on what the tests do, you may find that it's possible to run them from a drive letter assigned to that share. Charlie _____ From: [email protected] [mailto:[email protected]] On Behalf Of Butler, Tony (London) Sent: Thursday, March 20, 2008 3:17 AM To: [email protected] Subject: [Nunit-users] Problem running tests from a network share Hi, I am trying to run nunit tests from a network share and it's just not happening for me. I just run simply: Nunit-console.exe \\path\to\testassembly\testassembly.dll <file://\\path\to\testassembly\testassembly.dll> And I get: NUnit version 2.4.6 Copyright (C) 2002-2007 Charlie Poole. Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. Copyright (C) 2000-2002 Philip Craig. All Rights Reserved. Runtime Environment - OS Version: Microsoft Windows NT 5.2.3790 Service Pack 1 CLR Version: 2.0.50727.1433 ( Net 2.0.50727.1433 ) Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at NUnit.Util.ResultSummarizer..ctor(TestResult result) at NUnit.Util.XmlResultVisitor.Initialize(TestResult result) at NUnit.Util.XmlResultVisitor..ctor(TextWriter writer, TestResult result) at NUnit.ConsoleRunner.ConsoleUi.CreateXmlOutput(TestResult result) at NUnit.ConsoleRunner.ConsoleUi.Execute(ConsoleOptions options) at NUnit.ConsoleRunner.Runner.Main(String[] args) The tests all work fine if they are on a local drive. I need to run nunit under CruiseControl.NET and it needs to build on the network. Can anyone advise on how to run networked tests? Many thanks in advance, Tony _____ This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing. _____ ------------------------------------------------------------------------- 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/ _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users