C# Class NUnitLite.TeamCityEventListener

TeamCityEventListener class handles ITestListener events by issuing TeamCity service messages on the Console.
Inheritance: ITestListener
Mostra file Open project: nunit/nunit Class Usage Examples

Public Methods

Method Description
TeamCityEventListener ( ) : System

Default constructor using Console.Out

This constructor must be called before Console.Out is redirected in order to work correctly under TeamCity.

TeamCityEventListener ( TextWriter outWriter ) : System

Construct a TeamCityEventListener specifying a TextWriter. Used for testing.

TestFinished ( ITestResult result ) : void

Called when a test has finished

TestOutput ( TestOutput output ) : void

Called when a test produces output for immediate display

TestStarted ( ITest test ) : void

Called when a test has just started

Private Methods

Method Description
Escape ( string input ) : string
TC_TestFailed ( string name, string message, string details ) : void
TC_TestFinished ( string name, double duration ) : void
TC_TestIgnored ( string name, string reason ) : void
TC_TestStarted ( string name ) : void
TC_TestSuiteFinished ( string name ) : void
TC_TestSuiteStarted ( string name ) : void

Method Details

TeamCityEventListener() public method

Default constructor using Console.Out
This constructor must be called before Console.Out is redirected in order to work correctly under TeamCity.
public TeamCityEventListener ( ) : System
return System

TeamCityEventListener() public method

Construct a TeamCityEventListener specifying a TextWriter. Used for testing.
public TeamCityEventListener ( TextWriter outWriter ) : System
outWriter System.IO.TextWriter The TextWriter to receive normal messages.
return System

TestFinished() public method

Called when a test has finished
public TestFinished ( ITestResult result ) : void
result ITestResult The result of the test
return void

TestOutput() public method

Called when a test produces output for immediate display
public TestOutput ( TestOutput output ) : void
output NUnit.Framework.Interfaces.TestOutput A TestOutput object containing the text to display
return void

TestStarted() public method

Called when a test has just started
public TestStarted ( ITest test ) : void
test ITest The test that is starting
return void