[SpecFlow] Logging problems in Feature Hooks
While developing the Jenkins test farm for our test framework (written using SpecFlow), we realized some logging problems. To be precise, all logging that happens in BeforeFeature and AfterFeature hooks is not being printed on the CLI while the test is running. These logs are properly stored in the log files though without any problems, but we'd also like them to be displayed in the CLI. We use the `dotnet` command to run the tests. Only logs related to the Scenario are displayed properly.
I tried the classic Console.WriteLine(), as I thought log4net may be causing that issue, but in the end it was exactly the same.
How do I force SpecFlow to print logs for BeforeFeature properly? Has anyone had that issue before?
Please sign in to leave a comment.