-
Notifications
You must be signed in to change notification settings - Fork 47
System.Exception reporting a catastrophic failure when NUnit runner loads tests and project to be tested #56
Comments
Does this happen on all platforms? Are there any clues in the Exception message or inner exceptions? Any clues in the Output window of Visual Studio? |
After removing and readding the test projects for Android and UWP a billion times, I finally got Android working. However, the UWP test project now consistently complains about duplicate resources, this time its Xamarin.Forms.Platform.UAP/Resources.xbf. BTW, I found that NUnit.Runner introduces a "Hello" string resource in the Android project that is no where used. Sadly it is not provided with an id in the generated Resource.Designer.cs, thus causing a compilation error. I couldn't find it in the code of the droid runner project. Workaround is to create a strings.xml in resources and defining the string Hello there. I'll raise a separate issue to track that. |
In a last desperate attempt I upgraded Xamarin to 2.2.0.45. This brought back the Hello resource string issue, however using the workaround it's looking good. My UWP test project is crashing again (catastrophic failure). At least when I run it locally, i.e. on my computer, which is the only thing I can do since the Android Emulator messed up my config so that the Win Mobile Emulator no longer connects to the VM. Loving it :-| |
I'm developing a Xamarin project (iOS, Android, UWP). Both, the actual projects as well as the test projects use the shared project approach. When i run my tests (i.e. one Test with
Assert.Pass()
), the test project takes a nose dive throwing a System.Exception in the constructor of the MainPage (specifically the call toLoadApplication(nunit)
to which theNUnit.Runner.App
is passed to fails), reporting that App of my project returned a catastrophic failure. when I remove the reference to my project test run fine. I am also able to start my project standalone.I've been trying to hunt this down ever since i submitted this PR, but I'm running out of ideas. Any help appreciated.
The text was updated successfully, but these errors were encountered: