Living Documentation #196
Replies: 8 comments 24 replies
-
Thx for taking care of this. I don't think there are single answers for these questions (there are so many situation and needs), but let me share my thoughts based the usages of SpecFlow+ LivingDoc I have seen.
The most common usage is to produce the report at the same time of the test execution or directly after in CI (or locally). SpecFlow+ LivingDoc CLI enforced a separate step (generated the data during test execution and run the HTML gen after), but I know that many teams tried to merge this by calling the HTML gen from an AfterTestRun hook.
I think the most common usage is to use it with test-run, but I have seen usages where they were only interested in the nice rendering of the feature file and not interested in the test result. So both, but more commonly related to test-run.
Yes, definitely, as it is going to be used mostly as part of the CI. I would even say a "stand-alone command line tool" (no UI).
I think there are diverse answers for this. The most simple and common usage would require a single-file active HTML (maybe multi-file HTML is also acceptable, but more problematic to share). But there are teams who use this as part of their QA process, where they might need to produce other output (PDF, Word, ???). But I think this latter is more the special case. When I say active HTML, I mainly mean that something where you can browse the folders and feature files, search, etc. within the offline HTML. Besides these questions, there are plenty of "nice-to-haves" that I have heard of. These are not necessarily part of the primary goal (or a goal at all), but good to think about them when we set the design. (SpecFlow+ LivinDoc supported some of these.)
|
Beta Was this translation helpful? Give feedback.
-
Having a LivingDoc equivalent feature would allow us to migrate from SpecFlow to Reqnroll. I would gladly contribute to the development or testing of such a feature. |
Beta Was this translation helpful? Give feedback.
-
I love this is getting attention! LivingDocs reports are the only useful source of test results for us. Especially the test runner mixes output from concurrently running scenarios.
|
Beta Was this translation helpful? Give feedback.
-
Hi I'd like to chime in The main feature we need is the ability to generate an html report that can be easily navigated and parsed. We'd like it to support navigation/ filtering between test categories. We'd like for easy screenshot integration into the report. Being able to see the step, the timing, and console output for each test is an expected feature. I come from using spec runner and that was everything I needed. The livingdoc stuff looks cool and has nice features but some of it seems overkill for my general use case, however I never used it besides failing to integrate it with reqnroll :) PS reqnroll sounds closer to rick-roll than rock n roll to me🕺 |
Beta Was this translation helpful? Give feedback.
-
Thanks for bringing this in discussion! We used CLI command to generate reports. These are integrated in DevOps pipelines.
I also tried to use SpecFlow+LivingDoc DevOps extension, but it has some limitations and that’s where I switched to use CLI. Few limitations which I came across are
|
Beta Was this translation helpful? Give feedback.
-
I've found a way to generate LivingDoc HTML from Reqnroll unit tests. I've made a GitHub project to explain it, here's the link if you're interested: |
Beta Was this translation helpful? Give feedback.
-
Yes I do.. thanks for the input. One question how can i add base64 image to
the reporter?
…On Wed, Aug 14, 2024, 11:41 AM dominik-niebuhr ***@***.***> wrote:
@MathiasLopes <https://github.com/MathiasLopes> , small correction here.
I gave the command as livingdoc feature-folder "mypath to features folder"
--output-type HTML -t bin/Debug/net8.0/TestExecution.json instead of
livingdoc feature-folder . --output-type HTML -t
bin/Debug/net8.0/TestExecution.json but after removing the path it worked.
Thanks again for the workaround. Appreciate your inputs.
Have you got the test results to show up?
—
Reply to this email directly, view it on GitHub
<#196 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFBWBLKU5SQDZMCEN5KKEYLZRLYHTAVCNFSM6AAAAABKFOZSCGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMZTGM2DQNI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Status UpdateAs I understand it, the current game-plan is:
yes? |
Beta Was this translation helpful? Give feedback.
-
Having seen a few mentions of the SpecFlow Living Docs plugin, it seems like there's a demand for an equivalent feature in Reqnroll.
What I'd like to understand is:
I can think of many ways to approach this, so knowing the constraints is probably the easiest way to find a path forward.
Beta Was this translation helpful? Give feedback.
All reactions