Duplicate Tags in Test Explorer

73 views
Skip to first unread message

xDazedx

unread,
Apr 28, 2017, 10:00:32 AM4/28/17
to SpecFlow
I am using VS 2015 and I am current on all specrun/specflow packages.  

I added:
<unitTestProvider name="SpecRun+MsTest" />

When I reopened the project I have duplicate tags of everything.

Example view in Test Explorer:
API(500)
API(500)
Login(50)
Login(50) 

If I remove MsTest I am back to just seeing one set of tags. 

Anyone seen this before? Resolution?



Andreas Willich

unread,
May 3, 2017, 3:55:44 AM5/3/17
to SpecFlow
Hi

Is there a reason you have configured SpecRun+MsTest for the project?

With this configuration, the code-behind files contains code for MsTest and the SpecFlow+Runner.
So now the test explorer sees every scenario two times.
Both testadapters are reporting tests with categories. Sadly the test explorer does not group them by name, but by some internal value.
So you get the tags two times. And every scenario also.

BR
Andreas

--
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.

xDazedx

unread,
May 3, 2017, 9:57:50 AM5/3/17
to SpecFlow
Hey Andreas - Appreciate the help. This came up because in VS, when are trying to associate automated tests from MS Test Manager.  However when we tried, no test cases were visible when we clicked on the ellipses from "Associate Automation". We added MSTest as a unit test provider and then the test appeared. We could then change a test from manual to automated. Below is a link which will help make more sense of this. So in a nutshell, I just want the ability to change tests in MSTest Manager to Automated and that can only be done in Visual Studio. I just can's see any test to associate using SpecRun as the UnitTestProvider.

xDazedx

unread,
May 10, 2017, 9:22:02 AM5/10/17
to SpecFlow
Shameless bump to see if there is a solution here.
Reply all
Reply to author
Forward
0 new messages