Questions tagged [touch.unit]

Touch.Unit is a NUnitLite based runner that executes inside the iOS simulator or devices.

Touch.Unit is a NUnitLite based runner that executes inside the iOS simulator or devices.

It is used internally by Xamarin to unit test the class libraries shipped with MonoTouch. It is also provided with MonoTouch itself so developers can run their own .NET-based unit tests under iOS. Instructions for using Touch.Unit are available on Xamarin's documentation portal.

Touch.Unit is open source software. You can grab and fork its code from github.

7 questions
6
votes
1 answer

Best way for Unit Testing MonoTouch Projects?

Is there actually a good way to unit test MonoTouch projects using NUnit and the MonoDevelop test runner? I know there is the official MonoTouch unit tests project type, but running tests within the simulator isn't the way I want to go. For now I…
asp_net
  • 3,567
  • 3
  • 31
  • 58
3
votes
1 answer

MonoTouch and NUnitLite: what is the "Host" setting for?

I'm using NUnitLite quite a lot but have always been wondering what the host settings are about in the options menu. The options aren't explained in the documentation here: http://docs.xamarin.com/ios/tutorials/Unit_Testing Can somebody shed some…
Krumelur
  • 32,180
  • 27
  • 124
  • 263
2
votes
1 answer

Is InternalsVisibleTo available to allow MonoTouch Unit Tests access to the internal of a MT Lib?

Can you use the InternalsVisibleTo assembly attribute in a AssemblyInfo file of a MonoTouch Library to allow MonoTouch Unit Test (Touch.Unit) access to the internals of the MonoTouch library? This is something that is great to use in non-MonoTouch…
Rodney S. Foley
  • 10,190
  • 12
  • 48
  • 66
1
vote
1 answer

How to run MonoTouch unit tests in MonoDevelop?

After adding a MonoTouch Unit Tests Project I have to run the tests through the simulator. Since most of my tests don't test the UI, is there a way to run tests through MonoDevelop like the normal nunit project?
Jonas Stawski
  • 6,682
  • 6
  • 61
  • 106
1
vote
2 answers

MonoTouch - better console output in XCode's organizer

We've been playing around with the new MonoTouch NUnit test project, which is quite nice. Several of these tests we already run on Windows in CI software, and we print alot of stuff on the console to see what went wrong during the tests. If we build…
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182
1
vote
1 answer

NUnitLite on MonoTouch: tests succeed but don't get marked as executed in the UI

I'm on MonoTouch 6.0.4 and have implemented a Unit test using MonoTouch's NUnitLite. If I execute a test and end it with an Assert() I can see from the logs that the test executed successfully: Tests run: 1 Passed: 0 Inconclusive: 0 Failed: 1…
Krumelur
  • 32,180
  • 27
  • 124
  • 263
0
votes
1 answer

Testing exceptions in async methods with Touch.Unit (NunitLite)

I am trying to write unit test for my async method that throws exception. Here is my unit test. I am expecting WebException. The test fails as WebException is not returned immediately. Test runner exits with Unhandled Exception. Is there any way of…
Daria Trainor
  • 5,545
  • 4
  • 23
  • 30