xunit-xamarin - xunit.runner.devices 2.3.4-build.87

Includes support for running xUnit.net v2 tests on iOS, Android, and UWP devices

PM> Install-Package xunit.runner.devices -Version 2.3.4-build.87 -Source https://www.myget.org/F/xunit-xamarin/api/v3/index.json

Copy to clipboard

> nuget.exe install xunit.runner.devices -Version 2.3.4-build.87 -Source https://www.myget.org/F/xunit-xamarin/api/v3/index.json

Copy to clipboard

> dotnet add package xunit.runner.devices --version 2.3.4-build.87 --source https://www.myget.org/F/xunit-xamarin/api/v3/index.json

Copy to clipboard
<PackageReference Include="xunit.runner.devices" Version="2.3.4-build.87" />
Copy to clipboard
source https://www.myget.org/F/xunit-xamarin/api/v3/index.json

nuget xunit.runner.devices  ~> 2.3.4-build.87
Copy to clipboard

> choco install xunit.runner.devices --version 2.3.4-build.87 --source https://www.myget.org/F/xunit-xamarin/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "xunit-xamarin" -SourceLocation "https://www.myget.org/F/xunit-xamarin/api/v2"
Install-Module -Name "xunit.runner.devices" -RequiredVersion "2.3.4-build.87" -Repository "xunit-xamarin" -AllowPreRelease
Copy to clipboard

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 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.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
  • WPF/Desktop (future support planned)
  • 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
  • MonoAndroid 8.0
    • Xamarin.Forms (>= 2.5.0.121934)
  • UAP 10.0
    • Microsoft.NETCore.UniversalWindowsPlatform (>= 6.0.6)
  • Xamarin.iOS 1.0
    • Xamarin.Forms (>= 2.5.0.121934)
  • MonoAndroid 8.0: 8.0.0.0
  • UAP 10.0: 10.0.0.0
  • Xamarin.iOS 1.0: 1.0.0.0

Owners

Oren Novotny

Authors

Oren Novotny

Project URL

https://github.com/xunit/devices.xunit

License

Apache-2.0

Tags

xunit uwp xamarin android ios monoandroid tdd unit test

Info

844 total downloads
9 downloads for version 2.3.4-build.87
Package size 479.36 KB
Download
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
2.3.4-build.87 479.36 KB Tue, 09 Jan 2018 22:21:19 GMT 9
2.3.3 479.28 KB Sat, 20 Jan 2018 02:27:54 GMT 5
2.3.3-g0986588d09 479.32 KB Sat, 10 Feb 2018 02:35:30 GMT 6
2.3.3-build.84 479.38 KB Tue, 09 Jan 2018 20:00:40 GMT 8
2.3.3-build.83 479.34 KB Tue, 09 Jan 2018 19:43:23 GMT 8
2.3.3-build.82 479.35 KB Tue, 09 Jan 2018 19:20:29 GMT 8
2.3.3-build.79 479.35 KB Tue, 09 Jan 2018 18:44:15 GMT 7
2.3.3-build.78 479.37 KB Tue, 09 Jan 2018 18:34:57 GMT 6
2.3.3-build.76 479.33 KB Tue, 09 Jan 2018 18:28:14 GMT 7
2.3.3-build.75 479.36 KB Tue, 09 Jan 2018 18:18:15 GMT 6
2.3.3-build.73 479.33 KB Tue, 09 Jan 2018 18:12:08 GMT 7
2.3.3-build.72 479.36 KB Tue, 09 Jan 2018 17:57:21 GMT 7
2.3.3-build.68 479.35 KB Tue, 09 Jan 2018 15:43:52 GMT 7
2.3.3-build.67 479.38 KB Tue, 09 Jan 2018 15:21:49 GMT 8
2.3.3-build.65 479.34 KB Tue, 09 Jan 2018 14:51:37 GMT 7
2.3.3-build.64 479.36 KB Tue, 09 Jan 2018 14:40:16 GMT 8
2.3.3-build.62 479.34 KB Tue, 09 Jan 2018 13:59:39 GMT 6
2.3.3-build.61 479.33 KB Tue, 09 Jan 2018 13:45:08 GMT 7
2.3.3-build.60 479.35 KB Tue, 09 Jan 2018 05:02:40 GMT 7
2.3.3-build.59 479.31 KB Tue, 09 Jan 2018 04:46:13 GMT 6
2.3.3-build.58 479.36 KB Tue, 09 Jan 2018 04:34:49 GMT 7
2.3.3-build.57 479.38 KB Tue, 09 Jan 2018 04:23:35 GMT 7
2.3.3-build.56 479.36 KB Tue, 09 Jan 2018 03:43:09 GMT 7
2.3.3-build.55 479.31 KB Tue, 09 Jan 2018 03:36:31 GMT 7
2.3.3-build.51 474.42 KB Tue, 09 Jan 2018 03:12:56 GMT 6
2.3.3-build.49 474.46 KB Tue, 09 Jan 2018 00:51:09 GMT 7
2.3.3-build.48 474.56 KB Fri, 01 Dec 2017 13:49:46 GMT 10
2.3.2 474.46 KB Fri, 01 Dec 2017 13:37:20 GMT 8
2.3.2-gdc2908b370 474.6 KB Tue, 21 Nov 2017 23:41:41 GMT 10
2.3.2-ga3b27bdeba 461.29 KB Tue, 21 Nov 2017 22:35:07 GMT 10
2.3.2-g940c381977 474.63 KB Wed, 22 Nov 2017 20:56:05 GMT 10
2.3.1 473.9 KB Sun, 19 Nov 2017 18:58:43 GMT 11
2.3.1-preview.39 474 KB Sun, 19 Nov 2017 18:42:24 GMT 10
2.3.1-preview.38 474.02 KB Sun, 19 Nov 2017 18:28:22 GMT 9
2.3.1-preview.37 473.99 KB Sun, 19 Nov 2017 15:56:06 GMT 9
2.3.1-preview.36 474.01 KB Sun, 19 Nov 2017 15:42:31 GMT 81
2.3.1-preview.30 478.23 KB Thu, 16 Nov 2017 17:30:50 GMT 14
2.3.0 810.51 KB Tue, 24 Oct 2017 01:09:58 GMT 11
2.3.0-preview.26 810.63 KB Tue, 24 Oct 2017 00:53:10 GMT 10
2.3.0-preview.25 836.8 KB Mon, 23 Oct 2017 20:25:08 GMT 9
2.3.0-preview.24 791.71 KB Wed, 18 Oct 2017 18:28:29 GMT 9
2.3.0-preview.23 791.76 KB Wed, 18 Oct 2017 18:02:04 GMT 22
2.3.0-preview.21 791.68 KB Wed, 18 Oct 2017 17:06:01 GMT 12
2.3.0-preview.20 756.93 KB Wed, 18 Oct 2017 17:01:30 GMT 10
2.2.0 240.46 KB Sat, 20 May 2017 18:34:44 GMT 45
2.1.0 523.1 KB Sun, 19 Jun 2016 14:16:53 GMT 54
2.0.0 527.05 KB Sat, 30 Jan 2016 02:09:37 GMT 27
1.3.2 553.51 KB Sun, 29 Nov 2015 21:11:04 GMT 95
1.2.0 546.65 KB Sun, 27 Sep 2015 19:20:52 GMT 55
1.0.0 340.82 KB Mon, 16 Mar 2015 03:15:39 GMT 122