Visual Studio - Not generating reports

209 views
Skip to first unread message

xDazedx

unread,
May 24, 2016, 4:36:41 PM5/24/16
to SpecRun
Kind of odd on this because when I execute through jenkins or command line there are no issues. If I right click and run the test, it completes successfully but no report!

Visual Studio 2013
Specflow for VS2013 - v2015.1
Resharper Installed - Tools Runner set to SpecRun
Current versions of specflow/specrun

Anything I am missing?

Andreas Willich

unread,
May 24, 2016, 5:25:13 PM5/24/16
to SpecRun
If you look into the Output window and at the test output, do you have at the end of a testrun a link to the report?
If you start the Tests in VS, It is usually created in the Testresult folder.

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

Todd Johnson

unread,
May 24, 2016, 5:41:30 PM5/24/16
to spe...@googlegroups.com
nope! I just get a line that the test ran. No links like the old specflow days!!

Andreas Willich

unread,
May 25, 2016, 10:23:53 AM5/25/16
to spe...@googlegroups.com
That is strange. The reports are always generated.


pasted1
At the end there is the link to the report and to the logfile.
And this is not here for you?

Could you send us a screenshot of your output?

Thanks!
Andreas

xDazedx

unread,
May 26, 2016, 8:30:28 AM5/26/16
to SpecRun
Here is what the out put looks like:

------ Run test started ------
========== Run test finished: 1 run (0:00:25.0214312) ==========

 

Andreas Willich

unread,
May 27, 2016, 7:40:07 AM5/27/16
to spe...@googlegroups.com
Ok, this means, the SpecFlow+Runner is not used for executing the tests.

Could you please check if you did everything from the "Installation and Setup" part to the "Getting Started"- documentation here: http://www.specflow.org/getting-started/
It is important that both NuGet packages (SpecRun.SpecFlow, SpecRun.Runner) are installed and that SpecRun is configured as unitTestProvider in your app.config of the test project.

Like this:
pasted1

Thanks
Andreas

--

xDazedx

unread,
May 27, 2016, 8:38:05 AM5/27/16
to SpecRun
Thanks for the help Andreas but that is not it. In the original post I mentioned that I can run it from command line and Jenkins and the report generates so specrun would have to be installed to accomplish that. I have been using Specflow for about 2.5 years now so these are not new projects. Something broke along the way since this used to work. I will keep digging and see what turns up.

<unitTestProvider name="SpecRun+MsTest" /> 

Installed Nuget Packages -

Specflow 2.0
SpecRin for Specflow 2.0.0

Andreas Willich

unread,
May 30, 2016, 8:15:29 AM5/30/16
to spe...@googlegroups.com
Sorry, I overlooked this information.

You have as UnitTestProvider SpecRun+MsTest, so tests for SpecRun and MsTests are generated.
Do you have a specific reason for that?

It could be, that Visual Studio prefers the MsTest- Tests and does not execute it via SpecFlow+Runner.

Does Visual Studio find the tests?
If you rebuild your Test-project, you should have a similar output in the test output pane:
pasted1

As you are using Visual Studio 2013, do you have a Solution package.config, where the SpecRun.Runner is specified?
This package is also needed to run the tests.


--
Reply all
Reply to author
Forward
0 new messages