[SpecFlow+LivingDoc] Generate FeatureData.json on Run Test/Run All Tests
CompletedThe ability to enable generate automatically FeatureData.json with the test results that were executed and obtain the latest results in the generated report would be great.
srprofile could be used to set the LivingDoc CLI path if the CLI wasn't installed globally and auto-detect if it's installed globally.
Alternatively to auto-detecting or setting the CLI path, this could also be an enable or disable setting in the profile, such that if the developer has the CLI and wants to obtain the latest results then the developer would have to add
<LivingDoc isInstalledGlobally="true" resultsFolder="C:\\" featureDataFolder="C:\\Project\\FeatureData.json">
or
<LivingDoc livingDocCLIFolder="C:\\Program Files\\LivingDoc" resultsFolder="C:\\" featureDataFolder="C:\\Project\\FeatureData.json">
-
The FeatureData.json is generated automatically when you have added the SpecFlow.Plus.LivingDocPlugin NuGet package to your project.
You don't need to do anything more to get it.
Or do you mean that the LivingDoc.html file is automatically generated when you execute the scenarios?
0 -
Yes, I meant when I execute the scenarios :)
I want to get the latest results not the results of the last run so this would have to be generated like the current report that is finished after all scenarios finish either successfully or not
P.S: Sorry for replying with a different account (its my work email account) :)0 -
Also if I recall correctly and FeatureData.json doesn't exist at build time it's not recreated, only at test runs.
Just tested and it doesn't recreate FeatureData
Steps to recreate these issues:
Issue 1 - Generate automatically LivingDoc.html based on current run:
1 - Delete all tests
2 - Fail a task (say throw exception on purpose)
3 - Run tests
4 - Delete all tests
5 - Remove failing test
6 - Run tests to generate LivingDoc.html
7 - See the old failed task on LivingDoc.html
Issue 2 - FeatureData.json isn't regenerated when built:
1 - Delete FeatureData.json
2 - build or just use ctrl+b
3 - FeatureData.json still doesn't exist
Possibly related to: https://support.specflow.org/hc/en-us/community/posts/360013521438--SpecFlow-LivingDoc-Creation-of-LivingDoc-without-Test-execution-using-SpecFlow-LivingDoc-Generator0 -
Hi João, are you still facing the issue?
SpecFlow+ LivingDoc Generator now supports the creation of documentation without test execution.
You need to install or update to the latest version of the extension (at least 3.5.186).
Learn how to configure the CLI: https://docs.specflow.org/projects/specflow-livingdoc/en/latest/LivingDocGenerator/CLI/livingdoc-feature-folder.html
0 -
Seems both of these issues are fixed as of latest version :)
0 -
Thanks for the confirmation :)
0
Please sign in to leave a comment.
Comments
6 comments