xUnit.net Runners for Devices
Перейти к файлу
Oren Novotny bd058e49eb
Update to 2.4.1
2018-10-29 10:27:16 -04:00
integration Update integration projects 2018-07-29 12:27:25 -04:00
scripts fix sign script 2018-09-08 13:49:01 -04:00
src Update to 2.4.1 2018-10-29 10:27:16 -04:00
templates Update to 2.4.1 2018-10-29 10:27:16 -04:00
test Update to 2.4.1 2018-10-29 10:27:16 -04:00
.editorconfig Apply fixes 2017-06-09 16:27:19 -04:00
.gitattributes Initial check-in of Xamarin runner apps 2014-05-26 13:10:29 -04:00
.gitignore update script to use tasks and tool 2018-09-08 13:32:03 -04:00
Directory.build.props Update to latest library versions 2017-10-18 09:32:57 -04:00
README.md Update reame 2018-05-30 19:32:42 -04:00
azure-pipelines.yml Update and rename .azure-pipelines.yml to azure-pipelines.yml 2018-09-15 14:16:41 -04:00
license.txt update license to the .NET Foundation 2016-09-16 14:04:19 -04:00
nuget.config add nuget v3 endpoint 2017-10-18 10:12:13 -04:00
version.json set ver to 2.5 2018-09-08 13:00:51 -04:00
xUnit.Devices.sln Update to 2.4.1 2018-10-29 10:27:16 -04:00

README.md

These runners enable xUnit.net tests to run on iOS and Android devices with Xamarin and on any UWP device.

The xUnit.net Device Runners are a sub-project of xUnit.net under the .NET Foundation. It is licensed under the Apache 2 license, which is approved by the OSI.

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

The xUnit.net logo was designed by Nathan Young.

How to get started

xUnit.net supports both .NET Standard 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.1 package. Install-Package xUnit
  2. App for running the tests on a device or simulator: install the xUnit for Devices runner package. Install-Package xUnit.Runner.Devices

The runner package adds a starting AppDelegate (for iOS), MainActivity (for Android) or MainPage.xaml (UWP) 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.

Platform support

  • Xamarin.Android
  • Xamarin.iOS
  • UWP (Windows 10)

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).

Todo

  • Getting data back from runner to listening agent (remote)
  • trait display/filters
  • UI polish