SpecFlow 2.0 nUnit Report Generation Broken with nUnit 3.2

396 views
Skip to first unread message

007EVK

unread,
Apr 8, 2016, 3:51:05 AM4/8/16
to SpecFlow
So we have been trying for days to generate an HTML report with SpecFlow 2.0 and Nunit 3.2 like we used to do with SpecFlow 1.9.3 and nunit 2.6.4. Updated out console commands due to what ever reason those had to be changed for. This feature seems flat out broken and does not work. There are no example commands shown anywhere to give an idea....left out in the cold. Please help recover from the breaking changes.

The console command is...

nunit3-console "C:\s\Git\Testing.Services.Tests\bin\STAGE\Testing.Services.Tests.dll" --result="C:\TestResults\RA.Testing.Services.Tests.xml"

specflow.exe nunitexecutionreport "C:\s\Git\Testing.Services.Tests\Testing.Services.Tests.csproj" /xmlTestResult:"C:\TestResults\Testing.Services.Tests.xml" /out:"C:\TestResults\RA.Testing.Services.Tests.html"


....no actual execution results are shown....just a list of test names and counts


Stephen

Gáspár Nagy

unread,
Apr 21, 2016, 2:53:29 AM4/21/16
to SpecFlow
Hi,

Yes, this is known issue, see https://github.com/techtalk/SpecFlow/issues/539

Br,
Gaspar

--

Gaspar Nagy Spec Solutions
coach, trainer and bdd addict
email twitter linkedin blog

specflow courses in london oslo in-your-office

 

Paresh

unread,
Feb 17, 2017, 8:51:47 AM2/17/17
to SpecFlow
Hi,

I faced the similar issue.
The solution to the issue is to pass argument 'format=nunit2' while executing the tests.
So, the command will look like this:
nunit3-console.exe --labels=All --out=TestResult.txt "-- result=TestResult.xml;format=nunit2" bin\Debug\SpecFlowDemoNUnit.dll

And then the reports generated can be converted using:
specflow.exe nunitexecutionreport SpecFlowDemoNUnit.csproj /out:MyResult.html

 I hope this helps.

Senthil Kumar

unread,
Mar 30, 2017, 2:08:22 AM3/30/17
to SpecFlow
Hi ,

I tried the below steps Specflow.exe not creating html reports . It is throwing project file not found. Please help me how to run specflow from cmd prompt


Reply all
Reply to author
Forward
0 new messages