Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 27329 invoked from network); 12 Aug 2009 14:56:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Aug 2009 14:56:54 -0000 Received: (qmail 55913 invoked by uid 500); 12 Aug 2009 14:57:01 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 55839 invoked by uid 500); 12 Aug 2009 14:57:01 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 55828 invoked by uid 99); 12 Aug 2009 14:57:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 14:57:01 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 14:56:57 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 100C829A0011 for ; Wed, 12 Aug 2009 07:56:36 -0700 (PDT) Message-ID: <1219187729.1250088996063.JavaMail.jira@brutus> Date: Wed, 12 Aug 2009 07:56:36 -0700 (PDT) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQNET-177) NAnt test target not working In-Reply-To: <1755956972.1248269914640.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQNET-177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53599#action_53599 ] Timothy Bish commented on AMQNET-177: ------------------------------------- The last remaining problem is that the nunit-console doesn't seem to add the nunit-framewrok-extensions.dll in so none of the tests with the rowtest attribute seem to want to run from the console. > NAnt test target not working > ---------------------------- > > Key: AMQNET-177 > URL: https://issues.apache.org/activemq/browse/AMQNET-177 > Project: ActiveMQ .Net > Issue Type: Bug > Components: ActiveMQ Client > Affects Versions: 1.1.0 > Reporter: Timothy Bish > Assignee: Timothy Bish > Priority: Minor > Fix For: 1.2.0 > > > The NAnt test target in the nat-common.xml files isn't working. When run from a Linux box the target fails > The problem is the options passed to the nunit-console: > {noformat} > > > > > > > > > > > > > {noformat} > According to the NUnit console docs on linux the console only accepts hyphens for args, and accept both forms on windows, so the target should be changed to: > {noformat} > > > > > > > > > > > > > {noformat} > Unfortunately it still doesn't run but gives errors along the lines of: > {noformat} > [exec] ** (/usr/lib64/mono/1.0/nunit-console.exe:31465): WARNING **: The class System.Collections.Generic.Dictionary`2 could not be loaded, used in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 > [exec] Unhandled Exception: > [exec] System.TypeLoadException: Could not load type 'Apache.NMS.Test.NMSTestSupport' from assembly 'Apache.NMS.Test, Version=1.2.0.1663, Culture=neutral, PublicKeyToken=82756feee3957618'. > [exec] > [exec] Server stack trace: > [exec] at (wrapper managed-to-native) System.MonoType:GetMethodsByName (string,System.Reflection.BindingFlags,bool,System.Type) > [exec] at System.MonoType.GetMethods (BindingFlags bindingAttr) [0x00000] in /builddir/build/BUILD/mono-2.4/mcs/class/corlib/System/MonoType.cs:175 > [exec] at NUnit.Core.Reflect.GetMethodWithAttribute (System.Type fixtureType, System.String attributeName, BindingFlags bindingFlags, Boolean inherit) [0x00000] in /builddir/build/BUILD/mono-2.4/mcs/nunit24/NUnitCore/core/Reflect.cs:212 > [exec] at NUnit.Core.NUnitFramework.GetFixtureSetUpMethod (System.Type fixtureType) [0x00000] in /builddir/build/BUILD/mono-2.4/mcs/nunit24/NUnitCore/core/NUnitFramework.cs:117 > [exec] at NUnit.Core.NUnitTestFixture..ctor (System.Type fixtureType) [0x00000] in /builddir/build/BUILD/mono-2.4/mcs/nunit24/CommonAssemblyInfo.cs:1 > [exec] at NUnit.Core.Builders.NUnitTestFixtureBuilder.MakeSuite (System.Type type) [0x00000] in /builddir/build/BUILD/mono-2.4/mcs/nunit24/NUnitCore/core/Builders/NUnitTestFixtureBuilder.cs:32 > [exec] at NUnit.Core.Builders.AbstractFixtureBuilder.BuildFrom (System.Type type) [0x00000] in /builddir/build/BUILD/mono-2.4/mcs/nunit24/NUnitCore/core/Builders/AbstractFixtureBuilder.cs:69 > {noformat} > You get different errors on Windows when you run this but they boil down to the same problem, the nunit-console command is running a 1.1 CLR which isn't right, it should be calling nunit-console2 which runs a 2.0 CLR. Once you make that change then things start to work a bit better. The tests still fail because it seems that the tests aren't running from the working directory specified so the NMSTestSupport functions can't load the test config file, but at it gets to the point where its actually running the tests. > Anyone know how to get the nunit-console execution to run in the right working directory? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.