xunit-xamarin - xunit.runner.devices 1.2.0

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

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

Copy to clipboard

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

Copy to clipboard

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

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

nuget xunit.runner.devices  ~> 1.2.0
Copy to clipboard

> choco install xunit.runner.devices --version 1.2.0 --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 "1.2.0" -Repository "xunit-xamarin" 
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
  • Any 0.0
    • Xamarin.Forms (>= 1.5.0.6447)
    • xunit.core (>= 2.1.0)
    • xunit.runner.utility (>= 2.1.0)
  • UAP 10.0
    • System.Collections (>= 4.0.10)
    • System.Collections.Concurrent (>= 4.0.10)
    • System.Diagnostics.Debug (>= 4.0.10)
    • System.Diagnostics.Tools (>= 4.0.0)
    • System.Globalization (>= 4.0.10)
    • System.IO (>= 4.0.10)
    • System.IO.FileSystem (>= 4.0.0)
    • System.Linq (>= 4.0.0)
    • System.ObjectModel (>= 4.0.10)
    • System.Reflection (>= 4.0.10)
    • System.Runtime (>= 4.0.20)
    • System.Runtime.Extensions (>= 4.0.10)
    • System.Runtime.InteropServices.WindowsRuntime (>= 4.0.0)
    • System.Runtime.WindowsRuntime (>= 4.0.10)
    • System.Text.Encoding (>= 4.0.10)
    • System.Threading (>= 4.0.10)
    • System.Threading.Tasks (>= 4.0.10)
    • System.Xml.XDocument (>= 4.0.10)
    • xunit.abstractions (>= 2.0.0)
    • xunit.core (>= 2.1.0)
    • xunit.extensibility.core (>= 2.1.0)
    • xunit.extensibility.execution (>= 2.1.0)
    • xunit.runner.utility (>= 2.1.0)
  • MonoAndroid 0.0: 0.0.0.0
  • MonoTouch 0.0: 0.0.0.0
  • UAP 10.0: 10.0.0.0
  • Windows 8.1: 8.1.0.0
  • WindowsPhone 8.0: 8.0.0.0
  • WindowsPhoneApp 8.1: 8.1.0.0
  • Xamarin.iOS 0.0: 0.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 monotouch wp8 wpa81 win81 tdd unit test

Info

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