Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'dotnet test' doesn't discover any test

I have a project where I can not run the tests using dotnet test while my colleague can. The error message I get is

System.IO.FileNotFoundException: No test is available in C:\projects\...\bin\Debug\netcoreapp1.1\Test.AnalyzeFirmwareRollout.dll. Make sure test project has a nuget reference of package "Microsoft.NET.Test.Sdk" and framework version settings are appropriate and try again.

The project does have a reference to Microsoft.NET.Test.Sdk and the target framework is

<TargetFramework>netcoreapp1.1</TargetFramework>

in the csproj file. Any Ideas what could be going wrong here?

like image 554
Gasp0de Avatar asked Mar 26 '26 06:03

Gasp0de


1 Answers

For running xUnit tests from command line, you will need the xunit.runner.console package.

like image 134
rickvdbosch Avatar answered Mar 28 '26 21:03

rickvdbosch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!