SpecFlow.xUnitAdapter icon indicating copy to clipboard operation
SpecFlow.xUnitAdapter copied to clipboard

Missing "Feature Execution Details" from test execution report

Open robertbird opened this issue 6 years ago • 1 comments

HI there,

First of all I just wanted to say that I love the work you are doing in this project!! Not having the code behind files is amazing, especially for separating the people writing the test cases from the ones developing the framework. Well done and keep up the great work!

Now this is probably something stupid that I am doing, but when generating a Specflow HTML report, I am not getting any details in the report. I get the header level summary data (how many tests passed/failed etc) but no list of features or details of scenarios. Looking in the XML report that comes out of XUnit, I can see that there is no detail other than the overall outcome.

          <test-suite type="TestCollection" executed="True" name="Default Collection" result="Success" success="True" time="35.944">
            <results>
              <test-case name="Create Full Case with All Fields" executed="True" result="Success" success="True" time="35.9417168">
                <properties>
                  <property name="Category" value="functional" />
                </properties>
              </test-case>

Any ideas what I am missing?

Some info about my project:

  • I am using VS2017 and .NEt 4.7.1
  • I have upgraded to the latest versions (nuget packages) of Specflow, xUnit, xUnit.Runner and this project (v 1.2.0)
  • I have set my feature files to BuildAction SpecFlowFeature and copy always.
  • I am building and running from commandline using Debug configuration (in case this is needed for full details)
  • everything seems to run correctly in VisualStudio and I get meaningful output in the test window including full given/when/then details and outcomes when I open the test outcome window by clicking the 'output' link in the Test Explorer View/Results window.

Let me know what else I can try or provide as info, as I say probably something stupid I am doing at this end, but wondered if others have seen this.

Thanks, Rob

image

robertbird avatar May 20 '18 22:05 robertbird