Bug 12872 - Unit Test failures do not show up and then there is a crash
Summary: Unit Test failures do not show up and then there is a crash
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: NUnit ()
Version: 4.0.8
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-06-25 12:27 UTC by Brandon Bremen
Modified: 2013-09-08 17:20 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
video demonstration of reproduction (6.69 MB, video/quicktime)
2013-06-25 12:27 UTC, Brandon Bremen
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Brandon Bremen 2013-06-25 12:27:48 UTC
Created attachment 4196 [details]
video demonstration of reproduction

Since upgrading from MonoDevelop to Xamarin Studio, I have been unable to see output from unit test failures. The unit tests run but the Test Results window has no contents. The success and failure counts do display in the little status bar. Toggling "Inconclusive Tests" or any of the other filter buttons causes a crash. Toggling "Output" has no affect.

I assume these issues have the same root cause so I am filing them as one bug report.

These bugs may be reproduced on other machines and operating systems by downloading the project from https://github.com/absurdhero/tmotmo .

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Argument cannot be null. Parameter name: namespaceName at ICSharpCode.NRefactory.TypeSystem.TopLevelTypeName..ctor (System.String namespaceName, System.String name, Int32 typeParameterCount) [0x00037] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory/TypeSystem/TopLevelTypeName.cs:45 at ICSharpCode.NRefactory.TypeSystem.TypeSystemExtensions.GetTypeDefinition (IAssembly assembly, System.String namespaceName, System.String name, Int32 typeParameterCount) [0x00011] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory/TypeSystem/TypeSystemExtensions.cs:549 at MonoDevelop.NUnit.NUnitProjectTestSuite.GetSourceCodeLocation (System.String fixtureTypeNamespace, System.String fixtureTypeName, System.String methodName) [0x00014] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/addins/NUnit/Services/NUnitProjectTestSuite.cs:76 at MonoDevelop.NUnit.NUnitAssemblyTestSuite.GetSourceCodeLocation (MonoDevelop.NUnit.UnitTest test) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/addins/NUnit/Services/NUnitAssemblyTestSuite.cs:104 at MonoDevelop.NUnit.NUnitTestCase.get_SourceCodeLocation () [0x00019] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/addins/NUnit/Services/NUnitTestCase.cs:70 at MonoDevelop.NUnit.TestResultsPad.ShowTestResult (MonoDevelop.NUnit.UnitTest test, MonoDevelop.NUnit.UnitTestResult result) [0x00088] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:594 at MonoDevelop.NUnit.TestResultsPad.RefreshList () [0x0006c] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:576 at MonoDevelop.NUnit.TestResultsPad.OnShowInconclusiveToggled (System.Object sender, System.EventArgs args) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.0.8-branch/0a09117d/source/monodevelop/main/src/addins/NUnit/Gui/TestResultsPad.cs:552 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d5] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:226 --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.Reflection/MonoMethod.cs:234 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.Reflection/MethodBase.cs:96 at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000bf] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System/Delegate.cs:413 at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System/MulticastDelegate.cs:70 at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System/Delegate.cs:387 at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in :0 at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in :0 at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in :0
Comment 1 Mike Krüger 2013-06-26 03:26:04 UTC
fixed
Comment 2 Brandon Bremen 2013-09-08 17:20:37 UTC
verified in 4.0.12 beta on Mac.