Bug 59028 - Ios and Android test runners never complete async Task test methods
Summary: Ios and Android test runners never complete async Task test methods
Status: CONFIRMED
Alias: None
Product: iOS
Classification: Xamarin
Component: General (show other bugs)
Version: XI 10.0 (iOS10)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-08-24 21:44 UTC by ry.lowry
Modified: 2017-08-25 20:38 UTC (History)
3 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Demonstrates the problem with async Task method signatures. (3.31 MB, application/zip)
2017-08-24 21:44 UTC, ry.lowry
Details

Description ry.lowry 2017-08-24 21:44:04 UTC
Created attachment 24409 [details]
Demonstrates the problem with async Task method signatures.

Xamarin's NUnitLite test runners for iOS and Android hang indefinitely on tests with method signatures like the following:

    [Test()]
    public async Task TestAsyncTask()

but work for method signatures written like so:

    [Test()]
    public async void TestAsyncVoid()

It seems that the former method signature should be fully supported.

When the same tests are executed using the NUnitLite-Runner (https://github.com/nunit/docs/wiki/NUnitLite-Runner) from the NUnitLite nuget package v. 3.7.2 the following error message is shown:

    Async test method must have non-void return type

It seems "async Task" is required by recent versions of NUnit, and yet the preferred approach fails on the iOS and Android test runners. I think "async Task" method signatures should be usable everywhere.

=== Visual Studio Community 2017 for Mac ===

Version 7.1 (build 1297)
Installation UUID: 3ecb684b-b86a-4754-a34a-7a22a0ec600f
Runtime:
	Mono 5.2.0.215 (d15-3/da80840) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 502000215

=== NuGet ===

Version: 4.3.0.2418

=== .NET Core ===

Runtime: Not installed
SDK: Not installed
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.5.5
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 8.3.3 (12175.1)
Build 8E3004b

=== Xamarin.iOS ===

Version: 10.12.0.20 (Visual Studio Community)
Hash: 80b8487d
Branch: d15-3
Build date: 2017-08-18 16:07:26-0400

=== Xamarin.Android ===

Version: 7.4.0.21 (Visual Studio Community)
Android SDK: /Users/ryl/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		6.0 (API level 23)

SDK Tools Version: 25.2.5
SDK Platform Tools Version: 25.0.5
SDK Build Tools Version: 25.0.3

Java SDK: /usr
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Inspector ===

Version: 1.2.2
Hash: b71b035
Branch: d15-1
Build date: Fri, 21 Apr 2017 17:57:12 GMT

=== Xamarin.Mac ===

Version: 3.6.0.19 (Visual Studio Community)

=== Build Information ===

Release ID: 701001297
Git revision: 9c5299666538b2f8baf501418a5c064d784d64da
Build date: 2017-08-07 11:29:35-04
Xamarin addins: 3bb0c32a14f1b7e368bf5ac53a84c3581c019391
Build lane: monodevelop-lion-d15-3

=== Operating System ===

Mac OS X 10.12.6
Darwin 16.7.0 Darwin Kernel Version 16.7.0
    Thu Jun 15 17:36:27 PDT 2017
    root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

xUnit.NET 2 testing framework support 0.7.5

Note You need to log in before you can comment on or make changes to this bug.