appveyor / ci

AppVeyor community support repository
https://www.appveyor.com
344 stars 65 forks source link

[Request for help] Run xUnit 2 tests? #1820

Open ig-sinicyn opened 6 years ago

ig-sinicyn commented 6 years ago

Hi! I'm doing something wrong, obviously.

Our project targets net 4.6.1 and includes references to xunit v2 nuget package. I'm trying to run tests from the project via

xunit.console.clr4 C:\projects\codejam\PerfTests\tests-xUnit\bin\Publish\net461\CodeJam.PerfTests-Tests.xUnit.dll /appveyor

as recommended in docs. It fails with (link to the build)

xUnit.net console test runner (64-bit .NET 4.0.30319.42000)
Copyright (C) 2013 Outercurve Foundation.

error: Could not find file: C:\projects\codejam\PerfTests\tests-xUnit\bin\Publish\net461\xunit.dll

It looks like the runner is for xUnit 1.0 tests. It there documented way to run xunit 2.0 tests? :)

ig-sinicyn commented 6 years ago

Oh, found it. %xunit20%\xunit.console. The doc should be updated:)

IlyaFinkelshteyn commented 6 years ago

Sure, see https://github.com/appveyor/website/pull/373. Note that our website is Open Source so you can send PR for documentation too :)