Skip to content

Conversation

@radekdoulik
Copy link
Member

Make the stacktraces in the nunit tests more useful by passing
--debug to mono to have line numbers in the error reports.

Example output:

Errors and Failures:
1) Test Error : Java.InteropTests.MarshalMemberBuilderTest.AddExportMethods
   System.MissingMethodException : void Java.Interop.JniObjectReference.Dispose(Java.Interop.JniObjectReference)
  at (wrapper managed-to-native) Java.Interop.NativeMethods.java_interop_jnienv_call_void_method(intptr,intptr&,intptr,intptr)
  at Java.Interop.JniEnvironment+InstanceMethods.CallVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method) [0x00060] in /Users/rodo/git/java.interop/src/Java.Interop/Java.Interop/JniEnvironment.g.cs:11620
  at Java.InteropTests.MarshalMemberBuilderTest.AddExportMethods () [0x0010d] in /Users/rodo/git/java.interop/src/Java.Interop.Export/Tests/Java.Interop/MarshalMemberBuilderTest.cs:43
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305

@radekdoulik radekdoulik requested a review from jonpryor March 29, 2018 10:49
Make the stacktraces in the nunit tests more useful by passing
`--debug` to mono to have line numbers in the error reports.

Example output:
```
Errors and Failures:
1) Test Error : Java.InteropTests.MarshalMemberBuilderTest.AddExportMethods
   System.MissingMethodException : void Java.Interop.JniObjectReference.Dispose(Java.Interop.JniObjectReference)
  at (wrapper managed-to-native) Java.Interop.NativeMethods.java_interop_jnienv_call_void_method(intptr,intptr&,intptr,intptr)
  at Java.Interop.JniEnvironment+InstanceMethods.CallVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method) [0x00060] in /Users/rodo/git/java.interop/src/Java.Interop/Java.Interop/JniEnvironment.g.cs:11620
  at Java.InteropTests.MarshalMemberBuilderTest.AddExportMethods () [0x0010d] in /Users/rodo/git/java.interop/src/Java.Interop.Export/Tests/Java.Interop/MarshalMemberBuilderTest.cs:43
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305
```
@radekdoulik radekdoulik force-pushed the pr-tests-line-numbers branch from fd0c012 to 8b198f9 Compare March 29, 2018 10:51
@jonpryor jonpryor merged commit 9c6a550 into dotnet:master Mar 29, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants