Noksa / Allure.NUnit

C# NUnit Allure with improvements and SpecFlow3 adapter
MIT License
18 stars 6 forks source link

Question about Console Output catching. #43

Closed dklementyev closed 4 years ago

dklementyev commented 4 years ago

Hello! It's not like a bug. It sounds more like question. Is it possible to add Console output of .net core application into Allure Report?

I tried like catch output in BeforeStep and add Attachment in afterStep, but attachments not added to step, it added after all steps. Add ScreenShot as an example.

image

So, I use: Specflow 3 NUnit Adapter Noksa.NUnit.SpecFlow3

Noksa commented 4 years ago

@dklementyev Hello! At the moment, the call of any AfterStep occurs after the completion of the step. I will see what can be done with this.

dklementyev commented 4 years ago

@Noksa Hi. Thanks a lot! Please keep me updated in case of this!

Noksa commented 4 years ago

@dklementyev Try a new beta please: https://www.nuget.org/packages/Noksa.NUnit.SpecFlow3/1.2.0-beta1 Now you can add your logic to the step update in methods with the AfterStep attribute

dklementyev commented 4 years ago

@Noksa Thanks! Now it works for AddAttachment method from AllureLifeCycle.Instance.