Skip to content

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

License

Notifications You must be signed in to change notification settings

gimmemoore/SpecResults.WebApp

 
 

Repository files navigation

Attention: this project was formerly known as SpecFlow.Reporting.WebApp. This is not an offical SpecFlow package and the name clashed with some of the official SpecFlow packages/namespace. Therefor it was renamed to SpecResults.WebApp

All previous published versions of SpecFlow.Reporting.WebApp are still available on NuGet.org, alltough they aren't listed anymore.

WebApp reporter Build status

NuGet: SpecResults.WebApp

Usage

Make your existing StepDefinitions class inherit from SpecResults.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

Languages

  • JavaScript 77.4%
  • C# 11.5%
  • HTML 7.7%
  • Gherkin 2.7%
  • CSS 0.7%