Closed priort closed 6 years ago
It looks like it can't find XUnit Console runner. Can you check if xunit.console.exe
is anywhere in the packages folder?
xunit.console.exe is in 2 places. I have another project in the same solution though becuase I created a C# xunit project off a template so I could compare the dependencies to see if I needed a different runner. I was still getting the errors with running the F# project tests before that though so I don't think its anything to do with having a C# proj in the same solution. I've attached screenshots of the directory structure in the packages directory for the directories containing xunit.console.exe.
Can you try using latest stable version of XUnit (2.3.1) instead of prerelease version that’s referenced by F# project?
I created a new solution with one class library and just xunit and xunit.runner.console nuget packages using 2.3.1. I pushed everything to a repo including the packages folder etc. if you want to have a look. https://github.com/priort/Testing
The .idea directory is there as I used Rider to install the nuget packages (we don't use Paket in work yet and work is where I use full .NET framework - I use .NET core for everything else).
I still get the same errors.
Update released - please check out 1.0.5
Awesome! That works now, thanks so much.
Just one thing - TestResult.xml file doesn't need to be created by you, and should be gitignored. It's a file where "old" console N/XUnit runners put the results.
Cool, yeah when I delete it and run the tests, it gets created again. Thanks!
Firstly thanks for this plugin and it works with no issues for me for .NET core. However I have problems with xunit on a full .NET project. I have pasted my fsproj file below so that you can see target version and the referenced packages that I installed with nuget.
Firstly, I get this error: ENOENT: no such file or directory, open 'c:\Users\prior\OneDrive\d\XunitPlayground\Tests\TestResult.xml'
And when I create that TestResult.xml file and run the test I get these errors Cannot read property '0' of undefined Running test failed - {}
The neptune log shows [10:21:01 DEBUG] error: missing filename for -nunit
Maybe I just need some other nuget dependency or runner?
Thanks