This project is read-only.

Cant run unit test built with xUnit 2


When I try to run a unit test that is referencing xUnit 2, I get the following error:

[Window Title]
Unit Test Runner

[Main Instruction]
Unit Test Runner failed to run tests

System.ArgumentException: Could not find file: C:\Birddog\Merge\9.6\BirdDogFrameworkLayer\BirdDogSoftware.FactoryTest\bin\xunit.dll


[Header=_OK, Content=]

[Expanded Information]
at Xunit.ExecutorWrapper..ctor(String assemblyFilename, String configFilename, Boolean shadowCopy)
at XunitContrib.Runner.ReSharper.RemoteRunner.TestRunner.Run(XunitTestAssemblyTask assemblyTask, TaskProvider taskProvider) in c:\Users\Matt\Code\forks\xunitcontrib\forks\main\resharper\src\xunitcontrib.runner.resharper.runner\TestRunner.cs:line 41
at XunitContrib.Runner.ReSharper.RemoteRunner.XunitTaskRunner.ExecuteRecursive(TaskExecutionNode node) in c:\Users\Matt\Code\forks\xunitcontrib\forks\main\resharper\src\xunitcontrib.runner.resharper.runner\XunitTaskRunner.cs:line 23
at JetBrains.ReSharper.TaskRunnerFramework.StartupTaskRunnerHost.Execute(TaskExecutionNode node)


mattellis wrote Jun 6, 2013 at 8:38 PM

The runner doesn't support xunit2 yet. It requires a significant rewrite to work with it, and while I have hacked together a proof of concept, it's nowhere near ready to use, and needs a proper implementation before it's useful.

Also, xunit2 is still in early alpha stages, and I don't think it adds anything over the stable 1.9.1. I'd recommend using that version for now. My plan is to try and release a compatible runner around the time xunit2 hits beta.

volk wrote Mar 26, 2014 at 7:22 PM

Matellis, hello,

xUnit2 has hit beta1:
Would be great if you could release xunitcontrib compatible with the new version.

mattellis wrote Mar 27, 2014 at 10:11 AM

Agreed. I'll be working on it next week, hopefully get a pre-release version out soon.

PawelPabich wrote Apr 25, 2014 at 1:45 PM

Happy to help with testing if it helps. I'm very keen on getting R# working in with xunit 2.0. Are you going to support parallel execution of tests?



mattellis wrote Apr 25, 2014 at 2:25 PM

I've just got all of my tests passing today (funnily enough, I haven't tried running it manually), but currently it's explicitly disabling parallel execution - the old API meant I had to maintain a lot of state, and I'm looking at how to remove that right now.

I'll get it up on the ReSharper gallery as a pre-release package as soon as it's usable, so yes please, testing will be most useful.

PawelPabich wrote Apr 25, 2014 at 3:42 PM

Cool, ping us here so we can grab it.

Thanks a lot.

mattellis wrote May 2, 2014 at 10:56 PM

There's an alpha version of 2.0 support on the extension gallery. Also, the project has moved to GitHub, so all issues should now be posted on GitHub, please -