3

Closed

support for Windows Metro Style Apps (WinRT)

description

support for windows 8 metro style unit test projects.
Closed Dec 4, 2012 at 2:58 PM by mattellis

comments

mattellis wrote Jan 16, 2012 at 8:16 PM

Could you provide a bit more context, please? What would you like to see?

prabirshrestha wrote Jan 18, 2012 at 2:22 PM

I would basically want to reference xunit.dll and xunit.extensions.dll from a Windows Metro Style Apps and run xunit tests. (This means we would first need to port xunit.dll to Windows Metro Style Apps and also write a runner that works with the VS11 unit test runner.)
Currently there is no xunit.dll which works with Windows Metro Style apps.

prabirshrestha wrote Jan 18, 2012 at 2:29 PM

or might be I should file this issue in the original xunit project?

mattellis wrote Jan 22, 2012 at 10:22 AM

Yeah, I'd make a suggestion at the xunit site first, and see what they think

Thanks
Matt

xpaulbettsx wrote Mar 28, 2012 at 7:49 AM

I want to be able to create a new WinRT class library, add the NuGet XUnit package, then type Alt-RUN and have R# run my tests, just like everywhere else :) I realize this is a long way off, but that's the goal

mattellis wrote Mar 28, 2012 at 12:18 PM

Does resharper work with metro style apps? Does their nunit plugin work?

(Funny, the only thing I know about winrt is deep guts technical stuff, not the simple "does it do this" stuff)

onovotny wrote Jun 6, 2012 at 6:08 PM

Hi -- xUnit for WinRT already works but the source hasn't been integrated into the main tree yet.

I'll create a blog post on this, but for now, these binaries will work:
http://sdrv.ms/Kc5YJH

Create a regular Metro style unit test project, then follow the directions in this blog post:
http://novotny.org/blog/how-to-use-extension-sdks-per-project

Extract that zip file to your \libs\Windows\v8.0\ExtensionSDKs directory next to your solution, then modify the csproj file as described.

You can then add xUnit as an SDK reference to your test project and remove the mstest one.

onovotny wrote Jul 5, 2012 at 11:54 PM

An update - I've created a project template so you can create a new xUnit library for for Metro style apps easily:

http://novotny.org/blog/using-xunit-to-test-metro-style-applications

mattellis wrote Jul 6, 2012 at 11:30 AM

Guys, I think I'm going to close this issue in the next few days - it concerns xunit proper + WinRT rather than anything in the xunitcontrib project.

Does that sound ok? Any comments?

Matt