kentcb / xamarin.xunit

xUnit.net Runners for Xamarin (Android and iOS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

These runners enable xUnit.net tests to run on iOS and Android devices with Xamarin. The xUnit.net Xamarin Runners are a sub-project of xUnit.net under the Outercurve Foundation. It is licensed under the Apache 2 license, which is approved by the OSI.

Continuous integration builds are available online via TeamCity.

For status updates to these runners, follow @onovotny on Twitter For status updates on xUnit.net, follow @xunit, @jamesnewkirk, @bradwilson

For information on contributing to xUnit.net, see xUnit.net Governance.

The xUnit.net logo was designed by Nathan Young.
The TeamCity server is sponsored by Tier 3.

How to get started

xUnit.net supports both Portable Class Library (PCL) and platform specific projects for iOS and Android. Unit tests for Xamarin have two main components, which may reside in the same assembly.

  1. Assemblies containing tests: install the latest xUnit 2.0 beta package. Install-Package xUnit -pre
  2. App for running the tests on a device or simulator: install the xUnit for Xamarin runner package. Install-Package xUnit.Runner.Xamarin -pre

The runner package adds a starting AppDelegate (for iOS) or MainActivity (for Android) that you should use instead of the one generated by the new project template. Unit tests in the application itself will be picked up automatically. Referenced assemblies that contain tests need to be manually specified as described in the sample code.

This is a work-in-progress

Basic functionality works -- tests are discoverable and runnable. There is a lot of room for improvements in each of the runner apps. Pull Requests are very welcome. One main requirement -- the runner assemblies should be self-contained; they should not pull in additional non-xunit libraries (except Xamarin.Forms).

Links to Resources

About

xUnit.net Runners for Xamarin (Android and iOS)

License:Other


Languages

Language:C# 96.6%Language:Pascal 3.0%Language:PowerShell 0.4%