Skip to content

Feday/SpecFlow.Reporting.WebApp

 
 

Repository files navigation

WebApp reporter Build status

NuGet: SpecFlow.Reporting.WebApp

Usage

Make your existing StepDefinitions class inherit from SpecFlow.Reporting.ReportingStepDefinitions

Initialize and add the reporter in [BeforeTestRun] and register on one of the events to get notified when something gets reported:

[Binding]
public class StepDefinitions : ReportingStepDefinitions
{
	[BeforeTestRun]
	public static void BeforeTestRun()
	{
		var webApp = new WebAppReporter();
		webApp.Settings.Title = "WebAppReporter Showcase";
		
		Reporters.Add(webApp);

		Reporters.FinishedReport += (sender, args) =>
		{
			var reporter = args.Reporter as WebAppReporter;
			if (reporter != null)
			{
				reporter.WriteToFolder("app", true);
			}
		};
	}
}	

About

Writes an interactive, responsive, client-side web application, in which users can browse and search features, scenarios and steps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published