Skip to main content

[SpecFlow+LivingDoc] SpecFlow.Plus.LivingDocPlugin support for multiple project execution in a single run

Answered

Comments

7 comments

  • Ali Mollahosseini

    Hi Ankit,

    This is currently not supported as the data in the feature file is always overwritten with the latest run.

    However, we would be interested to work on it if more users vote for the issue on the forum.

    Cheers

    0
  • Vinícius Pinho
     

    I have the same problem

    0
  • Mortimer, Andrew EXT

    I have livingdoc being created in azure devops, and I have a visual studio project full of tests. Of course I want to run these tests using many different azure devops pipeline. Some run against different environments and some form integration tests in particular environments. To this end I want to list each run and results in the living doc. I think this is what this feature request is for? In one pipeline I have the Project name as "Run tests against int env" and in the other I have "Run tests against staging env", but only the latest one seems to appear.

    2
  • Christopher Hill

    We have a similar setup to you by the sounds of it Andrew .

    We have a repo with a SpecFlow Project that gets built in a build pipeline. This single build artifact is then used by 3 separate stages within a single pipeline:

    Each of these stages initiate its own Specflow+Living Doc task and save its own TestExecution.json to its own folder location (outside of the agent pool folder that gets overwritten every run):

    ... Making sure that the SpecFlow.json is also pointing to the same location.

    I had hoped that this would be enough to see all three of these test runs to exist within the LivingDoc interface, however, still, even with all the TestExecution.Json files available, only the latest run is displayed in the GUI:

    We would love to see this feature accommodated for out of the box.

    I have since found this link, but still not seeing it work as I had hoped.

    0
  • Jordan Western

    Christopher Hill,

    SpecFlow+ LivingDoc is limited to saving one doc per branch of a repository.

    What you can do is use the LivingDoc CLI in your release pipeline to generate the living doc per stage. Be aware that you need to handle the resulting LivingDoc html on your own.

    Please see the following which should help you work through this - https://docs.specflow.org/projects/specflow-livingdoc/en/latest/LivingDocGenerator/Generating-Documentation.html

    0
  • Mortimer, Andrew EXT

    I believe its this limitation we would like to see removed. We are allowed to specify a Project Name, so that should be enough to allow a different entry to be made. Most teams will have Test Automation code in a master branch of a repository and will want to run it against different environments with different test suites. It would be great if we could list these runs and results in the living doc. Not sure how the rest of the above post is supposed to help us with getting this all to work inside azure devops?

    0
  • Mark Shand

    Does anyone know if the LivingDoc support for multiple projects is being considered as a feature request?

    0

Please sign in to leave a comment.

Powered by Zendesk