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).

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

Recent Discussions

18 Oct, 2017 08:54 AM
18 Oct, 2017 08:21 AM
18 Oct, 2017 07:42 AM
17 Oct, 2017 07:36 PM
17 Oct, 2017 05:39 PM

 

17 Oct, 2017 04:29 PM
17 Oct, 2017 07:49 AM
16 Oct, 2017 11:38 PM
16 Oct, 2017 10:01 PM
16 Oct, 2017 08:25 AM
16 Oct, 2017 07:58 AM