Version number:
packages.config<PackageReference> tagsSpecFlow.Tools.MsBuild.Generation NuGet packageSpecFlowSingleFileGenerator custom toolEnable SpecFlowSingleFileGenerator Custom Tool option in Visual Studio extension settings<Major>.<Minor>.<Patch>
# specflow.json
{
"plugins": [
{"name": "Allure", "type": "Runtime" }
],
"stepAssemblies": [
{ "assembly": "Allure.SpecFlowPlugin" }
],
"trace": {
"listener": "TechTalk.SpecFlow.Tracing.NullListener, TechTalk.SpecFlow"
}
}
Tracking output still show in output, may I ask how could I disable trace output
Which trace output do you mean?
Hey @SabotageAndi , the trace output when I run test from console line, I saw
"Given ..."
"When ...." in terminal.
Do you think is it possible to fully disable it? in specflow 2.4, I set trace listener to NullListener , then there is no output for this trace. But in specflow 3(latest version), I cannot disable the trace in the terminal.
Thanks a lot for your help
Perhaps we broke it with SpecFlow 3. There were a lot of changes necessary with the container creation/registration.
The code is here: https://github.com/techtalk/SpecFlow/blob/master/TechTalk.SpecFlow/Infrastructure/ContainerBuilder.cs
Perhaps we resolve an ITraceListener before we register the one from the config.
I would suggest you send first a PR with a failing scenario/test. Perhaps you find also the issue.
For sure, I will make a PR for unit test at first to ensure I could reproduce it
@xuanzhaopeng any updates on this?
Closed because of inactivity
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
@xuanzhaopeng any updates on this?