dotnet-installer/src/dotnet/commands/dotnet-test/IDotnetTest.cs
Livar Cunha e498f1dc9d Modified the protocol to send a the list of tests to run and to invoke the test runner with the wait command flag so that the runner waits for this list.
Modified the reporting channel factory to have a create for the adapter and a create for the runner channel. Also added an event to the create runner channel that people can listen and be notified when a test runner channel was created. I use this event to give the message handler access to the runner channel.

Added the new message handler to DotnetTest.
2016-03-04 17:14:56 -08:00

27 lines
803 B
C#

// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
namespace Microsoft.DotNet.Tools.Test
{
public interface IDotnetTest : IDisposable
{
string PathToAssemblyUnderTest { get; }
DotnetTestState State { get; }
DotnetTest AddMessageHandler(IDotnetTestMessageHandler messageHandler);
IDotnetTestMessageHandler TestSessionTerminateMessageHandler { set; }
IDotnetTestMessageHandler UnknownMessageHandler { set; }
IEnumerable<string> TestsToRun { get; set; }
void StartHandlingMessages();
void StartListeningTo(IReportingChannel reportingChannel);
}
}