SpecFlow - HTML Reports



SpecFlow generates reports when all your tests completed executing and which includes breakdown of the test results.

Test Run from Explorer

To build a solution, navigate to the Build menu, then click on Build Solution.

Explorer Link

We should get a build success message.

Success Message

Navigate to the Tests menu and choose the Test Explorer option.

Test Explorer

We should be able to find the Features added to the SpecFlow project. Execute that via the Run All Tests in View option.

SpecFlow Project

The result is displayed as highlighted in the image below.

SpecFlow Highlighted

Report Generation

Go to the Output menu and select Tests from the Show output from − dropdown.

menu select

The total execution results get displayed in the Output Console. It contains information about the count of the test cases, total succeeded, ignored, skipped, failed, and so on. The user and machine names where the execution happened are also captured.

Also, the execution duration is displayed along with the link to the HTML report and the log file path.

HTML Report

Copy the Report file path and open it on the browser. We shall get a detailed HTML report with the project name, configuration, execution start time, duration, number of threads, and so on.

It shall describe the Results, Test Timeline Summary and the complete Feature Summary.

Timeline Summary

The report also consists of the Error Summary and Scenario Summary as well. It contains the Success Rate for each test. To know the details of a particular Feature, we can click on the Scenario Name(provided as a link).

Scenario Name

Next, the Execution Details are captured for every step. Each step details are displayed with Trace and Result.

Step Details

Step Details Captured
Advertisements