[SpecFlow + LivingDoc] Console.WriteLine or Logger information included in failed test messageCompleted
It seems that the test message only includes the exception's message or the assertion message specified in the testcase. Including additional information that are generated during the test run is not possible to display on failing tests.
Hi Illes, thanks a lot for your request and sorry for the late reply. What kind of additional information would you like to display and what is the use case you are trying to solve?0
Is it possible just to capture all the console output in Living doc? I want to capture all the subsequent requests when my test hits a button. I am getting all of them in default specflow test results html under the Trace column. But I am not getting them in living doc.0
No, it is not. You need to use our dedicated output API (https://docs.specflow.org/projects/specflow/en/latest/outputapi/outputapi.html) to get output into LivingDoc.0
that worked like a magic !0
Please sign in to leave a comment.