Console Logger Verbosity #919
Replies: 2 comments 6 replies
-
Beta Was this translation helpful? Give feedback.
-
|
I believe the short answer to be 'no'. The verbosity setting drives the behavior of the console logger, which is operating on the set of test progress events given it by the executing test framework (MsTest, NUnit, xUnit, TUnit). The test generated by Reqnroll uses the capabilities offered by the test frameworks. To my knowledge, none of them expose an API that allows Reqnroll to emit structured test progress information that would then be subject to the verbosity filtering setting of the logger. Reqnroll's output, both that provided by Reqnroll's runtime (such as the text of Scenarios and Steps) and that of the test's themselves (via the IReqnrollOutputHelper), eventually find their way to the mechanism provided by the test framework (usually via a TestContext or similar API) for raw text output -- usually the equivalent to a console.writeline(). The usual outcome of such output is that it is not filtered by the logger's verbosity setting. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When we Run our Tests we noticed that Reqnroll outputs the entire scenario and steps to the console. This is helpful for devs but it also means running
dotnet testin your CI/CD pipeline will create a lot of noise in the build logs.it seems like you should be able to control the dotnet test verbosity for the console logger like this
I tried Minimal and quite and this had no impact, i feel like minimal should maybe just output the scenario name and if it passed/failed.
Is there another way to control the console log level?
Beta Was this translation helpful? Give feedback.
All reactions