Test explorer does not show test on Test Explorer when using SpecRun on VS 2017

1,651 views
Skip to first unread message

Cairo Cuntapay

unread,
Jun 19, 2017, 5:21:25 AM6/19/17
to SpecFlow
I have created the solution on my machine and it is managed in TFS using version control. When my colleague mapped the solution on her local and tried building the solution there are no available tests on the test explorer.

If i change the unitTestProvider to MSTest in the config file, it shows all the tests, but upon changing it to SpecRun, the tests suddenly disappears. 

We are using VS Enterprise 2017

We've tried all possible solution like this one:

1.       Close all Visual Studio instances
2.       Go to 
%TEMP%\VisualStudioTestExplorerExtensions\
3.       Delete specrun related folders
4.       Try again

manuel casal

unread,
Jun 19, 2017, 7:36:59 AM6/19/17
to SpecFlow
Do your colleague have installed the Specflow extension from Tools - Extensions and updates?

Andreas Willich

unread,
Jun 19, 2017, 7:56:58 AM6/19/17
to SpecFlow
Discovery of tests in the test explorer of Visual Studio has nothing todo with the SpecFlow Visual Studio extension.
In case of the SpecFlow+Runner, this is done by a test adapter, which is included in the SpecRun.Runner nuget package.

@Cairo Cuntapay:
Do you have multiple versions of the SpecRun.Runner package in your local packages folder?
Visual Studio doesn't clean the package folder everytime perfect after an update and Visual Studio is taking the first test adapter it finds.

If you have multiple versions, delete them all and start a nuget restore.

--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chuong Nguyen

unread,
Jul 28, 2017, 3:50:07 AM7/28/17
to SpecFlow
Hi @Andreas,

I also have same issue on that topic.
Env: Visual Studio Comm 2017 15.2
My steps: 
- Create new project
- Install  SpecRun.SpecFlow. (automatically added related packages)
- Create feature file
- Build solution

=> Test Explorer didn't snow Scenarios as I want, only the step: @SpecRun: Execution delay for evaluation mode

I am still fresh guy on SpecFlow, I back to Java guy to .Net. 

Andreas Willich

unread,
Jul 28, 2017, 4:17:24 AM7/28/17
to spec...@googlegroups.com
Did you followed the Getting started on specflow.org

Chuong Nguyen

unread,
Jul 28, 2017, 10:15:11 AM7/28/17
to SpecFlow
Sure, Andreas.

I tried to follow on that many times but it can not find out the test explorer.
I uploaded my example. Could you take a look on that?


Link is safe :)

However I downgraded the Specrun.Specflow from 1.6.0 to 1.5.2.The issue have gone away, then I rebuild solution and got the scenario which I've declared before
Reply all
Reply to author
Forward
0 new messages