Skip to main content

SpecFlow report after running multiple tasks

Comments

5 comments

  • Andreas Willich

    This scenario is supported. You need to collect all TestExecution.json from your pipelines and you can specify multiple TestExecution.jsons on the CLI and the Build task.

    Like this: 

    C:\work\BookShop\BookShop.AcceptanceTests\bin\Debug\netcoreapp3.1>livingdoc test-assembly BookShop.AcceptanceTests.dll -t TestExecution_1.json TestExecution_2.json

    1
  • Andreas Willich

    We are going to write some documentation for this use case in the next iteration, but until we published it, here are the steps you need to do:

    1. Configure a custom TestExecution.json filename in the specflow.json file - see https://docs.specflow.org/projects/specflow-livingdoc/en/latest/LivingDocGenerator/Setup-the-LivingDocPlugin.html

    2. Change the parameter `testExecutionJson` to a glob pattern to catch all your testexecution.json files - see https://docs.specflow.org/projects/specflow-livingdoc/en/latest/Generating/Configuring-the-Build-Step-in-YAML.html#livingdoc-specific-parameters-inputs

    So you change it in the YAML to something like this:

    testExecutionJson: 'MyProject.Qa.Specifications\bin\Debug\netcoreapp3.1\TestExecution*.json'
    0
  • Karol Czechowski

    Hi Andreas Willich, in response to your comment on jetbrains youtrack thread, I found this topic the most relevant to my question from there. I am having similar case as above, I would like to keep one LivingDoc status from the different Pipelines with tests. I have multiple pipelines and want to see results in one LivingDoc place. On the other hand, I don't mind having more than one LD, preferably accessible straight from Pipeline results(and showing only the tests I run). I think it's a bit general question how to handle documentation when having much more tests, pipelines, environments etc.? :)

    0
  • Andreas Willich

    Karol Czechowski What exactly do you mean with multiple pipelines? Are they different definitions for the same project in the same repo? Are they for completely different projects?

    Or do you simply slice your tests of one project into different pipelines and need to merge it together again?

    0
  • Karol Czechowski

    Andreas Willich I have several pipelines where each of them runs only few test scenarios. All is in one project, one repo. By doing this I want to make pipelines more stable, get a faster feedback and run them selectively by some categories.

    0

Please sign in to leave a comment.

Powered by Zendesk