While working on Selenium with C#, I used Nunit3testadapter to locate my testscripts in test explorer. I wrote the command line to execute my tests. That batch file uses VSTest.console.exe, which works fine for me.
vstest.console.exe "C:\Users\Documents\Visual Studio 2015\Projects\Automation\TestCases\bin\Debug\TestCases.dll" /UseVsixExtensions:true /InIsolation /Logger:trx
But when I tried to create automatic build process with Jenkins and used exactly same command. It started giving me error. "No test is available in the provided sources. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again".
I have tried multiple options like: 1. Execute Windows Batch command 2. Run unit tests with VSTest.Console
If anyone has it's solution, please help me on it. Thanks in advance.
See the console log: https://i.sstatic.net/9QA4i.png
I experienced exactly the same symptoms. What helped in my case was:
I hope it helps in your scenario as well.