Generating LivingDoc using CLI¶
SpecFlow+LivingDoc Generator allows you to generate a local or self-hosted HTML of your Gherkin Feature Files without the need of Azure DevOps. You also have the option to generate documentation with or without test results.
Generation excluding test results¶
In order to generate your living documentation without test execution results, you need to:
Generation including test results¶
In order to generate your living documentation with test execution results, you need to:
- Setup the SpecFlow.Plus.LivingDocPlugin for your SpecFlow project (if you have created the project using the SpecFlow Visual Studio project template, this dependency should already be there).
- Build your project.
- Run your tests. This will generate a TestExecution.json next to your TestAssembly which is needed in the next step.
- Install the command line tool
- Execute the command line tool and make sure to pass the test execution JSON files to the CLI.