xunit-xamarin - xunit.runner.devices 2.3.0-preview.9.gdc2d24710b

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

PM> Install-Package xunit.runner.devices -Version 2.3.0-preview.9.gdc2d24710b -Source https://www.myget.org/F/xunit-xamarin/api/v3/index.json

Copy to clipboard

> nuget.exe install xunit.runner.devices -Version 2.3.0-preview.9.gdc2d24710b -Source https://www.myget.org/F/xunit-xamarin/api/v3/index.json

Copy to clipboard

> dotnet add package xunit.runner.devices --version 2.3.0-preview.9.gdc2d24710b --source https://www.myget.org/F/xunit-xamarin/api/v3/index.json

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

nuget xunit.runner.devices  ~> 2.3.0-preview.9.gdc2d24710b
Copy to clipboard

> choco install xunit.runner.devices --version 2.3.0-preview.9.gdc2d24710b --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.0-preview.9.gdc2d24710b" -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 7.0
    • Xamarin.Forms (>= 2.3.4.247)
    • xunit.core (>= 2.2.0)
    • xunit.runner.utility (>= 2.2.0)
  • UAP 10.0
    • Microsoft.NETCore.UniversalWindowsPlatform (>= 5.2.3)
    • xunit.core (>= 2.2.0)
    • xunit.runner.utility (>= 2.2.0)
  • Xamarin.iOS 1.0
    • Xamarin.Forms (>= 2.3.4.247)
    • xunit.core (>= 2.2.0)
    • xunit.runner.utility (>= 2.2.0)
  • MonoAndroid 7.0: 7.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

610 total downloads
3 downloads for version 2.3.0-preview.9.gdc2d24710b
Package size 115.8 KB
Download
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
2.3.3-build.48 474.56 KB Fri, 01 Dec 2017 13:49:46 GMT 1
2.3.2 474.46 KB Fri, 01 Dec 2017 13:37:20 GMT 0
2.3.2-gdc2908b370 474.6 KB Tue, 21 Nov 2017 23:41:41 GMT 1
2.3.2-ga3b27bdeba 461.29 KB Tue, 21 Nov 2017 22:35:07 GMT 1
2.3.2-g940c381977 474.63 KB Wed, 22 Nov 2017 20:56:05 GMT 1
2.3.1 473.9 KB Sun, 19 Nov 2017 18:58:43 GMT 2
2.3.1-preview.39 474 KB Sun, 19 Nov 2017 18:42:24 GMT 1
2.3.1-preview.38 474.02 KB Sun, 19 Nov 2017 18:28:22 GMT 1
2.3.1-preview.37 473.99 KB Sun, 19 Nov 2017 15:56:06 GMT 1
2.3.1-preview.36 474.01 KB Sun, 19 Nov 2017 15:42:31 GMT 19
2.3.1-preview.30 478.23 KB Thu, 16 Nov 2017 17:30:50 GMT 6
2.3.0 810.51 KB Tue, 24 Oct 2017 01:09:58 GMT 2
2.3.0-preview.26 810.63 KB Tue, 24 Oct 2017 00:53:10 GMT 1
2.3.0-preview.25 836.8 KB Mon, 23 Oct 2017 20:25:08 GMT 1
2.3.0-preview.24 791.71 KB Wed, 18 Oct 2017 18:28:29 GMT 1
2.3.0-preview.23 791.76 KB Wed, 18 Oct 2017 18:02:04 GMT 12
2.3.0-preview.21 791.68 KB Wed, 18 Oct 2017 17:06:01 GMT 2
2.3.0-preview.20 756.93 KB Wed, 18 Oct 2017 17:01:30 GMT 1
2.3.0-preview.19 756.92 KB Wed, 18 Oct 2017 15:13:41 GMT 1
2.3.0-preview.18 756.91 KB Wed, 18 Oct 2017 14:16:10 GMT 6
2.3.0-preview.14 116.25 KB Sun, 08 Oct 2017 02:21:35 GMT 2
2.3.0-preview.13 116.24 KB Fri, 25 Aug 2017 01:50:34 GMT 3
2.3.0-preview.12 115.85 KB Fri, 25 Aug 2017 01:33:13 GMT 2
2.3.0-preview.10 115.88 KB Fri, 09 Jun 2017 21:12:44 GMT 3
2.3.0-preview.9.gdc2d24710b 115.8 KB Fri, 09 Jun 2017 19:32:03 GMT 3
2.3.0-preview.9 115.79 KB Fri, 09 Jun 2017 19:36:09 GMT 3
2.3.0-preview.8.g270f634da2 115.79 KB Fri, 09 Jun 2017 19:27:56 GMT 3
2.3.0-preview.6.g2149986226 103.87 KB Fri, 09 Jun 2017 18:25:32 GMT 4
2.2.0 240.46 KB Sat, 20 May 2017 18:34:44 GMT 28
2.2.0-rc2-build0008 240.47 KB Sat, 20 May 2017 18:27:50 GMT 10
2.2.0-rc2-build0007 240.56 KB Sat, 20 May 2017 18:16:41 GMT 10
2.2.0-rc2-build0005 240.38 KB Tue, 14 Mar 2017 15:37:04 GMT 10
2.2.0-rc2-build0004 240.38 KB Fri, 10 Mar 2017 03:07:58 GMT 8
2.2.0-rc2-build0003 240.38 KB Sun, 26 Feb 2017 14:36:41 GMT 11
2.2.0-rc2-build0002 240.24 KB Mon, 20 Feb 2017 22:04:21 GMT 11
2.2.0-rc2-build0001 240.24 KB Mon, 20 Feb 2017 20:41:07 GMT 12
2.2.0-rc0001 240.31 KB Mon, 20 Feb 2017 20:26:42 GMT 12
2.2.0-beta-build0026 240.19 KB Mon, 20 Feb 2017 20:17:43 GMT 9
2.2.0-beta-build0025 237.41 KB Mon, 20 Feb 2017 19:00:42 GMT 10
2.2.0-beta-build0024 237.36 KB Mon, 20 Feb 2017 18:12:59 GMT 46
2.2.0-beta-build0021 232.88 KB Mon, 20 Feb 2017 15:37:23 GMT 12
2.2.0-beta-build0016 232.72 KB Sat, 11 Feb 2017 01:54:31 GMT 4
2.2.0-beta-build0015 231.09 KB Sat, 11 Feb 2017 01:23:43 GMT 11
2.1.0 523.1 KB Sun, 19 Jun 2016 14:16:53 GMT 36
2.1.0-rc0001 523.27 KB Sat, 18 Jun 2016 20:50:18 GMT 61
2.0.0 527.05 KB Sat, 30 Jan 2016 02:09:37 GMT 12
1.3.2 553.51 KB Sun, 29 Nov 2015 21:11:04 GMT 75
1.2.0 546.65 KB Sun, 27 Sep 2015 19:20:52 GMT 35
1.0.0 340.82 KB Mon, 16 Mar 2015 03:15:39 GMT 103