xunit / devices.xunit

xUnit.net Runners for Devices
Other
73 stars 36 forks source link

Running Tests on Main UI Thread #65

Closed wickedw closed 6 years ago

wickedw commented 6 years ago

Hi,

More of a question than an Issue, is there anyway to ask the xUnit Runner to run its tests on the Main UI Thread?

Thanks for any help.

Best Regards Matt

clairernovotny commented 6 years ago

I haven't updated it in a while, but this should work if you apply the attribute: https://www.nuget.org/packages/xunit.extensions.uitest/1.0.0-rc1

wickedw commented 6 years ago

Thanks, sorry wrote this then completely forgot about this thread! and never got an email notify. I went off and used the usual

UIApplication.SharedApplication.InvokeOnMainThread(() =>

etc

Will try this and report back about using [UIFact].

wickedw commented 6 years ago

Seems to work great, thanks :)