Skip to content

MathiasLopes/ReqnrollTemporaryLivingDoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Generate LivingDoc HTML file from Reqnroll Unit Tests

Install NuGet databinding.LivingDoc.ExecutionDataCollector in your Reqnroll test project.

Add file reqnroll.json at root path of the Reqnroll test project with this content :

{
  "$schema": "https://schemas.reqnroll.net/reqnroll-config-latest.json",
  "bindingAssemblies": [
  ],
  "livingDocExecutionDataCollector": {
    "enabled": true,
    "filepath": "TestExecution.json"
  }
}

With these additions, we enable the generation of a TestExecution.json file in the test execution folder, containing test results in json format.

Now we have to install the SpecFlow LivingDoc CLI tool, in the terminal, execute :

dotnet tool install --global SpecFlow.Plus.LivingDoc.CLI

Now, we can generate the HTML file.

So, first, we need to execute unit tests, in the folder where is the csproj :

dotnet test

And now, execute at the same location, the following command :

livingdoc feature-folder . --output-type HTML -t bin/Debug/net8.0/TestExecution.json

The LivingDoc HTML file should be generated in the same folder where you are located.

About

Generating a LivingDoc from Reqnroll unit tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages