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
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.
If you aren't fussy about the format, then there is another way to achieve this,
[x.Tests.dll] x.Tests.ConfirmThatSchedulesStartAndStopFeature.ProvideAFakeDateTime_Now
Given a schedule called Calc
-> done: ScheduleModelTest.GivenAScheduleCalled("Calc") (0.0s)
And my schedule thinks its Monday 8:00
-> done: ScheduleModelTest.GivenMyScheduleThinksIts("Monday", "8:00") (0.0s)
Then my schedule should tell me its Monday 8:00
-> done: ScheduleModelTest.ThenMyScheduleShouldTellMeIts("Monday", "8:00") (0.0s)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.