Bug 14312 - Touch.Unit runner crashes in async tests
Summary: Touch.Unit runner crashes in async tests
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 6.4.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2013-08-28 23:50 UTC by Greg Shackles
Modified: 2013-08-31 12:57 UTC (History)
2 users (show)

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

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:
RESOLVED FIXED

Description Greg Shackles 2013-08-28 23:50:33 UTC
I'm running into issues where the Touch.Unit runner crashes when I try run a set of async tests. The app output shows passing tests, but it also looks like exceptions are happening later on, implying that the async tests aren't working properly. At the end of the run this results in the app actually crashing. A sample output is available here: https://gist.github.com/gshackles/3c0186fe07769c40229b

This can be reproduced by cloning this repo: https://github.com/gshackles/nyccodecamp8

Open up 'CodeCamp - All.sln' and run the CodeCamp.Core.Tests.iOS project in the simulator. When the app launches, choose to run all tests, which results in this crash every time for me.

Mono 3.2.1 ((no/f3f789e)
Xamarin.iOS Version: 6.4.1.1 (Business Edition)
Comment 1 Sebastien Pouliot 2013-08-31 12:25:00 UTC
Hey, I cloned the repo and pulled the submodules but it still does not build. Anything else needed (or a smaller test case) ?

Assembly 'Cirrious.CrossCore.Touch' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors.
Assembly 'Cirrious.CrossCore' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors.
Assembly 'Cirrious.MvvmCross.Plugins.Sqlite.Touch' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors.
Assembly 'Cirrious.MvvmCross.Plugins.Sqlite' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors.
Assembly 'Cirrious.MvvmCross.Touch' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors.
Assembly 'Cirrious.MvvmCross' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors.
The reference 'System.Windows' is not valid for the target framework of the project.
Assembly 'Cirrious.MvvmCross.Plugins.Messenger' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors.
Assembly 'Cirrious.MvvmCross.Plugins.Email.Touch' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors.
Assembly 'Cirrious.MvvmCross.Plugins.Email' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors.
Assembly 'Cirrious.MvvmCross.Plugins.WebBrowser.Touch' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors.
Assembly 'Cirrious.MvvmCross.Plugins.WebBrowser' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors.
Build: 69 errors, 12 warnings
Comment 2 Greg Shackles 2013-08-31 12:27:18 UTC
There are some submodules in there too that you'll need to pull down (git submodule init, git submodule update). Sorry for not providing a more concise test case, but I figured this would be a good example since it's very reproducible. Let me know if you still have trouble building!
Comment 3 Sebastien Pouliot 2013-08-31 12:41:17 UTC
> and pulled the submodules

Funny I got them (submodules) but it did not built (with less errors than without the submodules). Now I restarted XS and it builds fine (might be unrelated but I did nothing else with the repo). Anyway sorry for trouble (I can reproduce it now).
Comment 4 Sebastien Pouliot 2013-08-31 12:57:53 UTC
Fixed in Touch.Unit / 9dd3a5bcd365d73a15fc5509073ddc9fae0356ed

You can build your own MonoTouch.NUnitLite.dll (from my repo) until newer version of Xamarin.iOS starts shipping with the fix.