Class OutputWriter
OutputWriter is an abstract class used to write test results to a file in various formats. Specific OutputWriters are derived from this class.
Inherited Members
Namespace: NUnitLite
Assembly: nunitlite.dll
Syntax
public abstract class OutputWriter
Constructors
View SourceOutputWriter()
Declaration
protected OutputWriter()
Methods
View SourceWriteResultFile(ITestResult, TextWriter, IDictionary<string, object>, TestFilter)
Abstract method that writes a test result to a TextWriter
Declaration
public abstract void WriteResultFile(ITestResult result, TextWriter writer, IDictionary<string, object> runSettings, TestFilter filter)
Parameters
Type | Name | Description |
---|---|---|
ITestResult | result | The result to be written |
TextWriter | writer | A TextWriter to which the result is written |
IDictionary<string, object> | runSettings | A dictionary of settings used for this test run |
TestFilter | filter |
WriteResultFile(ITestResult, string, IDictionary<string, object>, TestFilter)
Writes a test result to a file
Declaration
public void WriteResultFile(ITestResult result, string outputPath, IDictionary<string, object> runSettings, TestFilter filter)
Parameters
Type | Name | Description |
---|---|---|
ITestResult | result | The result to be written |
string | outputPath | Path to the file to which the result is written |
IDictionary<string, object> | runSettings | A dictionary of settings used for this test run |
TestFilter | filter | The filter to apply |
WriteTestFile(ITest, TextWriter)
Abstract method that writes test info to a TextWriter
Declaration
public abstract void WriteTestFile(ITest test, TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
ITest | test | The test to be written |
TextWriter | writer | A TextWriter to which the test info is written |
WriteTestFile(ITest, string)
Writes test info to a file
Declaration
public void WriteTestFile(ITest test, string outputPath)
Parameters
Type | Name | Description |
---|---|---|
ITest | test | The test to be written |
string | outputPath | Path to the file to which the test info is written |