run Specflow scenario with MStest V2 and vstest.console.exe... not working anymore

492 views
Skip to first unread message

Fabio Giorgi

unread,
Mar 20, 2017, 7:08:10 AM3/20/17
to SpecFlow
Hello everybody,
I just tried to run the Specflow scenario I have on VS2015.3 using the new released MSTest V2.

On Visual Studio everything was fine...

But when I run on vstest.console.exe I got an error (that you can find as attachment). Apparently do not recognize the tests anymore...


Some else already tried the same with a different result?








MSTestv2_specflowError.png

Gáspár Nagy

unread,
Mar 20, 2017, 8:53:47 AM3/20/17
to SpecFlow
Hi,

I managed to get it working by specifying the test adapter path. (I assume you have also added the package to make it work in VS.)

...MyTests\bin\Debug>vstest.console MyTests.dll /TestAdapterPath:..\..\..\packages\MSTest.TestAdapter.1.1.13\build\_common\

Br,
Gaspar

Fabio Giorgi

unread,
Mar 20, 2017, 10:35:28 AM3/20/17
to SpecFlow
Hi Gaspar,
thanks a lot!

Fabio
Reply all
Reply to author
Forward
0 new messages