Document how to run and add tests
Issue #19
closed
How does one run the tests and add new ones?
Comments (2)
-
-
- changed status to closed
Issue closed
- Log in to comment
Currently most tests are packed in a NUnit Xamarin.iOS application. To run the tests, open the solution from Xamarin Studio 5.1 or above. Then, set 'IntegrationTests.Touch-PCL' as default project.
Run the application in the simulator or device and you should see the NUnit test runner:
Hit 'Run Everything' and you'll see all the traces in the console indicating which tests are being executed. When all of them are run, you'll see the results in the App:
In NUnit tests are discovered on runtime: all classes annotated with
[TestFixture]
attributed is a Test suite, and all methods of that class annotated with a[Test]
attribute is a test case.There's also NUnit runners for Android, Windows Phone, etc. So the tests cases can be reused between platforms.
Hope it helps.