I have VS 2017 and .net 4.6
On trying to run via cmd prompt using vstest.console:
vstest.console.exe bin\Release\Tests.dll /UseVsixExtensions:true
I am getting warning "No test is available in /bin/Release/test.dll
Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again."
So, I tried listing the tests but it doesn't show any tests.
vstest.console.exe bin\Release\Tests.dll /ListTests /UseVsixExtensions:true
Unit tests class file is as shown below.
[TestFixture]
public class class1
{
static void StartTest(string[] args)
{
}
[Test] [Category("Regression_Test")]
public void TS1()
{
}
}
I tried googling for similar issue but didn't find anything that would work. Any help is really appreciated
Have you actually installed the NUnit 3 test adapter as a vsix?
If you are using the more usual approach of installing via nuget, you need to tell vstest.console.exe
where to find the adapter using the /TestAdapterPath
option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With