Enhance your Living Documentation with Text, Images and Files

Sdílet
Vložit
  • čas přidán 24. 08. 2024
  • One of the most popular feature requests for SpecFlow+ LivingDoc was that it should include screenshots. As always, the SpecFlow community spoke up, and we listened!
    With the latest release of SpecFlow and SpecFlow+ LivingDoc, it is now possible to display additional test output (text, files, and images) within your Living Documentation.
    Andi (Andreas Willich, Community Manager) and Ali (Ali Mollahosseini, Technical Writer) will show you how to use the new functionality and use it in your CI/CD pipelines.
    Sample Code: github.com/Spe...
    Shared Links:
    Output API Docs: docs.specflow....
    Feature Request Forum: support.specfl...
    Step by Step Guide for SpecFlow+ LivingDoc for Azure DevOps: docs.specflow....
    Link to ALM Tool: docs.specflow....
    SpecFlow is the #1 .NET open-source framework for Behavior Driven Development, Acceptance Test Driven Development, and Specification by Example.
    Learn more about SpecFlow: specflow.org/
    Follow us on Twitch.tv at / specflow

Komentáře • 4

  • @PriyankaDas-sk1ft
    @PriyankaDas-sk1ft Před rokem

    Somehow the webinar video is not very clear. Its blurry .Here are couple of things that I want to achieve :
    a) How to generate Living Doc automatically each time after running tests via Test Explorer? I do not want to run the command manually each time to generate the report.
    b) Also how can I save/store the old instance of Living Docs in Project Folder to refer later (if needed)?

    • @swaroopgowda3204
      @swaroopgowda3204 Před rokem

      Even I’m facing same issue, are you able to generate now and can you please help.

    • @karolmichalik701
      @karolmichalik701 Před rokem

      I am actually using (for local runs) a bat file.
      Something like this - you will have to adjust but I think it will be the hint:
      "
      @echo off
      REM Run dotnet test command
      dotnet test PATH_TO_PROJECT.sln
      REM Check the exit code of the previous command
      IF %ERRORLEVEL% NEQ 0 (
      echo dotnet test failed.
      exit /b %ERRORLEVEL%
      )
      REM Run livingdoc command
      livingdoc feature-folder "PATH_TO_FEATURES" --test-execution-json "PATH_TO_TestExecution.json" --output "PATH_TO_RESULTS.html"
      REM Check the exit code of the previous command
      IF %ERRORLEVEL% NEQ 0 (
      echo livingdoc failed.
      exit /b %ERRORLEVEL%
      )
      echo Batch file completed successfully.
      "
      Ah though you will have to add a line to rename and copy the existing results.html at the top to other directory like archive or whatever.
      Similar thing should be achievable on CI/CD pipeline of your choice I think.

  • @rahulpednekar214
    @rahulpednekar214 Před 10 měsíci

    Can i add a .text attachment using the Output API?