Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SpecFlow test not displayed in the test explorer

Tags:

I have installed Visual studio 2015 on multiple PC and application that is using SpecFlow. The application is working normally on 1 pc because everything there was installed long time ago. However on the other PCs tests are not being displayed in the test explorer, and I need them in the test explorer. Please help

like image 928
Sonja Avatar asked May 11 '16 10:05

Sonja


2 Answers

For me, the test displayed after the Specflow MSTest was added from NuGet. enter image description here

like image 112
Amishra Avatar answered Oct 03 '22 02:10

Amishra


Tests are not displayed in the Test Explorer window when using SpecFlow+ Runner

I run into this all the time. There is a great section on the GitHub repo page for specflow that I keep bookmarked for when stuff like this comes up. Usually this one (deleting the cache file) fixes issues for me.

The Visual Studio Test Adapter cache may also get corrupted, causing tests to not be displayed. If this happens, try clearing your cache as follows:

  1. Close all Visual Studio instances
  2. Navigate to your %TEMP%\VisualStudioTestExplorerExtensions\ folder and delete any sub-folders related to SpecFlow/SpecRun.
  3. Reopen your solution and ensure that it builds.

https://github.com/techtalk/SpecFlow/wiki/Troubleshooting-Visual-Studio-Integration

Hope this helps

like image 45
DerrickF Avatar answered Oct 03 '22 01:10

DerrickF