Search Results for

    Show / Hide Table of Contents

    Class TeamCityEventListener

    TeamCityEventListener class handles ITestListener events by issuing TeamCity service messages on the Console.

    Inheritance
    object
    TeamCityEventListener
    Implements
    ITestListener
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnitLite
    Assembly: nunitlite.dll
    Syntax
    public class TeamCityEventListener : ITestListener

    Constructors

    View Source

    TeamCityEventListener()

    Default constructor using Console.Out

    Declaration
    public TeamCityEventListener()
    Remarks

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

    View Source

    TeamCityEventListener(TextWriter)

    Construct a TeamCityEventListener specifying a TextWriter. Used for testing.

    Declaration
    public TeamCityEventListener(TextWriter outWriter)
    Parameters
    Type Name Description
    TextWriter outWriter

    The TextWriter to receive normal messages.

    Methods

    View Source

    SendMessage(TestMessage)

    Called when a test produces a message to be sent to listeners

    Declaration
    public void SendMessage(TestMessage message)
    Parameters
    Type Name Description
    TestMessage message

    A TestMessage object containing the text to send

    View Source

    TestFinished(ITestResult)

    Called when a test has finished

    Declaration
    public void TestFinished(ITestResult result)
    Parameters
    Type Name Description
    ITestResult result

    The result of the test

    View Source

    TestOutput(TestOutput)

    Called when a test produces output for immediate display

    Declaration
    public void TestOutput(TestOutput output)
    Parameters
    Type Name Description
    TestOutput output

    A TestOutput object containing the text to display

    View Source

    TestStarted(ITest)

    Called when a test has just started

    Declaration
    public void TestStarted(ITest test)
    Parameters
    Type Name Description
    ITest test

    The test that is starting

    Implements

    ITestListener
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0