Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SpecFlow - HTML output from Visual Studio

Tags:

c#

nunit

specflow

I'm trying to generate a nice HTML output for my specflow features from Visual Studio. I have resharper installed and I can run my feature tests but I would like to get an html output of the final results.

I have tried several sites which say we can create an External Tools. Here are my settings:

Title: SpecFlow Test Result

Command:C:\TFS\Test_Automation\a.1_Main\Test\AutoUpdateTests\AutoUpdateTests\packages\SpecFlow.1.9.0\tools\specflow.exe

Arguments: nunitexecutionreport AutoUpdateTests.csproj /xmlTestResult:bin\debug\TestResult.xml

Initial directory: $(ProjectDir)

so then I execute my tests and then select Tools -> SpecFlow Test Result

I see a cmd window open briefly but no TestResult.xml file appears.

Any ideas? I also have referenced nunit.framework in my project not sure that matters.

Thanks

like image 809
user1904593 Avatar asked Feb 18 '26 09:02

user1904593


1 Answers

I've written a blog post that describes how this is accomplished, yes it's about MsTest but the general idea is the same

Also - in the last 2 minutes of this video Rob Conery hooks Visual Studio up with the SpecFlow test runner, if you rather watch than read.

like image 89
Marcus Hammarberg Avatar answered Feb 20 '26 21:02

Marcus Hammarberg