-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
82 changed files
with
1,729 additions
and
417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Make BDD with Gherkin and SpecFlow | ||
|
||
Use [SpecFlow] to define, manage and automatically execute human-readable acceptance tests in .NET projects. Writing easily understandable tests is a cornerstone of the BDD paradigm and also helps build up a living documentation of your system. | ||
|
||
SpecFlow is open source and provided under a BSD license. As part of the Cucumber family, SpecFlow uses the official Gherkin parser and supports the .NET framework, Xamarin and Mono. | ||
|
||
The package Fake.DotNet.Testing.SpecFlow is a bridge to the [SpecFlow] CLI (specflow.exe). | ||
|
||
## Minimal working example | ||
|
||
```fsharp | ||
#r "paket: | ||
nuget Fake.Core.Target | ||
nuget Fake.DotNet.Testing.SpecFlow //" | ||
open Fake.Core | ||
open Fake.DotNet.Testing | ||
let specsProject = "IntegrationTests.csproj" | ||
Target.create "Regenerate Test Classes" (fun _ -> | ||
SpecFlow.run (fun p -> | ||
{ p with ProjectFile = specsProject }) | ||
) | ||
Target.create "Create StepDefinition Report" (fun _ -> | ||
SpecFlow.run (fun p -> | ||
{ p with SubCommand = "stepdefinitionreport" | ||
ProjectFile = specsProject | ||
BinFolder = "bin/Debug" | ||
OutputFile = "StepDefinitionReport.html" }) | ||
) | ||
Target.create "Default" Target.DoNothing | ||
"Clean" | ||
==> "Regenerate Test Classes" | ||
==> "Build" | ||
==> "Run Integration Tests" | ||
==> "Create StepDefinition Report" | ||
==> "Default" | ||
Target.runOrDefault "Default" | ||
``` | ||
|
||
[SpecFlow]: http://specflow.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Convert Gherkin to HTML with Pickles | ||
|
||
[Pickles] is a Living Documentation generator: it takes your Specification (written in Gherkin, with Markdown descriptions) and turns them into an always up-to-date documentation of the current state of your software - in a variety of formats. | ||
|
||
## Minimal working example | ||
|
||
```fsharp | ||
#r "paket: | ||
nuget Fake.Core.Target | ||
nuget Fake.IO.FileSystem | ||
nuget Fake.Tools.Pickles //" | ||
open Fake.Core | ||
open Fake.Core.TargetOperators | ||
open Fake.IO.FileSystemOperators | ||
open Fake.Tools | ||
open System.IO | ||
let currentDirectory = Directory.GetCurrentDirectory() | ||
Target.create "BuildDoc" (fun _ -> | ||
Pickles.convert (fun p -> | ||
{ p with FeatureDirectory = currentDirectory </> "Specs" | ||
OutputDirectory = currentDirectory </> "SpecDocs" | ||
OutputFileFormat = Pickles.DocumentationFormat.DHTML }) | ||
) | ||
Target.runOrDefault "BuildDoc" | ||
``` | ||
|
||
[Pickles]: http://www.picklesdoc.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Fake.Testing.ReportGenerator | ||
|
||
ReportGenerator converts XML reports generated by OpenCover, PartCover, dotCover, Visual Studio, NCover or Cobertura into human readable reports in various formats. | ||
|
||
he reports do not only show the coverage quota, but also include the source code and visualize which lines have been covered. | ||
|
||
ReportGenerator supports merging several reports into one. It is also possible to pass one XML file containing several reports to ReportGenerator (e.g. a build log file). | ||
|
||
See https://github.com/danielpalme/ReportGenerator | ||
|
||
## Minimal working example | ||
|
||
```fsharp | ||
"#r "paket: | ||
nuget Fake.Core.Target | ||
nuget Fake.Testing.ReportGenerator" | ||
open Fake.Core | ||
open Fake.Core.TargetOperators | ||
open Fake.Testing | ||
... | ||
Target.create "Generate Reports" (fun _ -> | ||
let parameters p = { p with TargetDir = "c:/reports/" } | ||
!! "**/opencover.xml" | ||
|> ReportGenerator.generateReports parameters | ||
) | ||
Target.create "Default" DoNothing | ||
"Clean" | ||
==> "SetAssemblyInfo" | ||
==> "Build" | ||
==> "RunCoverage" | ||
==> "Generate Reports" | ||
==> "Default" | ||
Target.runOrDefault "Default" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.