System.InvalidOperationException: Unknown test framework: could not find xunit.dll (v1) or xunit.execution.*.dll (v2)

r.wobben's Avatar

r.wobben

19 Apr, 2017 01:22 PM

Hello,

I try to work with this github repo : System.InvalidOperationException: Unknown test framework: could not find xunit.dll (v1) or xunit.execution.*.dll (v2)

On the install script I have this :

 nuget sources add -Name roelof -Source https://www.myget.org/F/pk-development/api/v2

and on the before script I have this :

 nuget restore

but still I see this build failure : https://ci.appveyor.com/project/rwobben/paintings/build/1.0.15

Someone who can help me fix this.

  1. Support Staff 1 Posted by Ilya Finkelshte... on 20 Apr, 2017 12:37 AM

    Ilya Finkelshteyn's Avatar

    What command line do you use locally to run tests successfully?

    Side note: your project was created as Git, but it is hosted on GitHub. If you want to use appveyor.yml file, see better build status and many other features, please re-create it as GitHub. Also note that appveyor.yml file should be in the root of repository.

    Ilya.

  2. 2 Posted by r.wobben on 20 Apr, 2017 05:39 AM

    r.wobben's Avatar

    Can I change this or do I have to recreate it.

    For the test on the prompt I can use this command

        dotnet test ./tests/Painting.Website.Tests/Painting.Website.Tests.csproj

  3. Support Staff 3 Posted by Ilya Finkelshte... on 20 Apr, 2017 05:06 PM

    Ilya Finkelshteyn's Avatar

    Please re-create it. Regarding tests, at this moment automatic test detection works well with classic .NET test projects, but not with .NET Core projects. It is tracked in this GitHub issue. To run your tests, add your command as test script. For that if you use UI, switch to script from auto, For YAML add it under test_script tag (or export UI settings).

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:16 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac