Skip to content

Commit

Permalink
Configuration option to disable all output.
Browse files Browse the repository at this point in the history
  • Loading branch information
gasparnagy committed May 3, 2010
1 parent fae32f0 commit 8b8d456
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions Runtime/TechTalk.SpecFlow.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
<Compile Include="Tracing\DefaultListener.cs" />
<Compile Include="ErrorHandling\ErrorProvider.cs" />
<Compile Include="Tracing\LanguageHelper.cs" />
<Compile Include="Tracing\NullListener.cs" />
<Compile Include="Tracing\StepDefinitonSkeletonProvider.cs" />
<Compile Include="Tracing\StepFormatter.cs" />
<Compile Include="UnitTestProvider\XUnitRuntimeProvider.cs" />
Expand Down
15 changes: 15 additions & 0 deletions Runtime/Tracing/NullListener.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace TechTalk.SpecFlow.Tracing
{
public class NullListener : ITraceListener
{
public void WriteTestOutput(string message)
{
//nop;
}

public void WriteToolOutput(string message)
{
//nop;
}
}
}
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ New features:
+ Single installer for Visual Studio 2008 and 2010 (Issue 6, 10, 11)
+ Place GeneratedCodeAttribute and 'Designer generated code' region on generated code to
avoid having this code parsed by code analysis. (Issue 33)
+ Configuration option to disable all output. (Issue 29)
Use the following config to disable output:
<trace listener="TechTalk.SpecFlow.Tracing.NullListener, TechTalk.SpecFlow" />

Fixed issues:
+ SpecFlow Reporting doesn't work with Firefox (Issue 31)
Expand Down

0 comments on commit 8b8d456

Please sign in to comment.