[Mono-bugs] [Bug 652321] Couldn't run/load unit tests
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Nov 9 08:52:59 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=652321
https://bugzilla.novell.com/show_bug.cgi?id=652321#c1
Lluis Sanchez <lluis at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|NUnit |misc
Version|SVN |2.8.x
AssignedTo|lluis at novell.com |mono-bugs at lists.ximian.com
Product|MonoDevelop |Mono: Runtime
QAContact|monodevelop-bugs at lists.ximi |mono-bugs at lists.ximian.com
|an.com |
--- Comment #1 from Lluis Sanchez <lluis at novell.com> 2010-11-09 13:52:58 UTC ---
This seems to be a Mono bug. I get this exception in the console:
System.TypeLoadException: Could not load type
'ICSharpCode.NRefactory.TypeSystem.CecilLoaderTests' from assembly
'ICSharpCode.NRefactory.Tests, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null'.
I get the same error if I try to run the tests using nunit-console:
lluis at linux-wovx:~/playground/NRefactory/ICSharpCode.NRefactory.Tests/bin/Debug>
nunit-console ICSharpCode.NRefactory.Tests.dll
NUnit version 2.4.8
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: Unix 2.6.34.7
CLR Version: 2.0.50727.1433 ( 2.8 (mono-2-8/50a2d76 dl nov 8 23:42:20 CET
2010) )
Unhandled Exception:
System.TypeLoadException: Could not load type
'ICSharpCode.NRefactory.TypeSystem.CecilLoaderTests' from assembly
'ICSharpCode.NRefactory.Tests, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null'.
Server stack trace:
at (wrapper managed-to-native) System.MonoType:GetMethodsByName
(System.MonoType*,string,System.Reflection.BindingFlags,bool,System.Type)
at System.MonoType.GetMethods (BindingFlags bindingAttr) [0x00000] in
/home/lluis/nowork/mono/mcs/class/corlib/System/MonoType.cs:211
at NUnit.Core.Reflect.GetMethodWithAttribute (System.Type fixtureType,
System.String attributeName, BindingFlags bindingFlags, Boolean inherit)
[0x00000] in /home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/Reflect.cs:212
at NUnit.Core.NUnitFramework.GetFixtureSetUpMethod (System.Type fixtureType)
[0x00000] in
/home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/NUnitFramework.cs:117
at NUnit.Core.NUnitTestFixture..ctor (System.Type fixtureType) [0x00000] in
<filename unknown>:0
at NUnit.Core.Builders.NUnitTestFixtureBuilder.MakeSuite (System.Type type)
[0x00000] in
/home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/Builders/NUnitTestFixtureBuilder.cs:32
at NUnit.Core.Builders.AbstractFixtureBuilder.BuildFrom (System.Type type)
[0x00000] in
/home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/Builders/AbstractFixtureBuilder.cs:69
at NUnit.Core.Extensibility.SuiteBuilderCollection.BuildFrom (System.Type
type) [0x00029] in
/home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/Extensibility/SuiteBuilderCollection.cs:55
at NUnit.Core.TestFixtureBuilder.BuildFrom (System.Type type) [0x00000] in
/home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/TestFixtureBuilder.cs:31
at NUnit.Core.Builders.TestAssemblyBuilder.GetFixtures
(System.Reflection.Assembly assembly, System.String ns) [0x00032] in
/home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/Builders/TestAssemblyBuilder.cs:189
at NUnit.Core.Builders.TestAssemblyBuilder.Build (System.String assemblyName,
Boolean autoSuites) [0x0001a] in
/home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/Builders/TestAssemblyBuilder.cs:99
at NUnit.Core.Builders.TestAssemblyBuilder.Build (System.String assemblyName,
System.String testName, Boolean autoSuites) [0x00016] in
/home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/Builders/TestAssemblyBuilder.cs:76
at NUnit.Core.TestSuiteBuilder.BuildSingleAssembly (NUnit.Core.TestPackage
package) [0x0001e] in
/home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/TestSuiteBuilder.cs:119
at NUnit.Core.TestSuiteBuilder.Build (NUnit.Core.TestPackage package)
[0x00025] in
/home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/TestSuiteBuilder.cs:65
at NUnit.Core.SimpleTestRunner.Load (NUnit.Core.TestPackage package)
[0x0000b] in
/home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/SimpleTestRunner.cs:107
at NUnit.Core.ProxyTestRunner.Load (NUnit.Core.TestPackage package) [0x00000]
in /home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/ProxyTestRunner.cs:104
at NUnit.Core.ProxyTestRunner.Load (NUnit.Core.TestPackage package) [0x00000]
in /home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/ProxyTestRunner.cs:104
at NUnit.Core.RemoteTestRunner.Load (NUnit.Core.TestPackage package)
[0x0005b] in
/home/lluis/nowork/mono/mcs/nunit24/NUnitCore/core/RemoteTestRunner.cs:45
at (wrapper xdomain-dispatch) NUnit.Core.RemoteTestRunner:Load
(object,byte[]&,byte[]&)
Exception rethrown at [0]:
at (wrapper xdomain-invoke) NUnit.Core.RemoteTestRunner:Load
(NUnit.Core.TestPackage)
at NUnit.Util.TestDomain.Load (NUnit.Core.TestPackage package) [0x0003f] in
/home/lluis/nowork/mono/mcs/nunit24/ClientUtilities/util/TestDomain.cs:57
It fails to load the type, but gives no information about why.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list