ITestResult
Overview
Represents a result of a test run.
This interface is returned by the Runner class when test run is finished.
Use case
This inteface can be used to process result of a test run:
//locates all tests
var Discovered := Discovery.DiscoverTests;
//Executes tests
var Completed := Runner.RunTests(Discovered);
var Writer := new ConsoleWriter(Completed);
Writer.WriteFull;
Writer.OutputToConsole;
Location
- Reference:
- RemObjects.Elements.EUnit.dll .NET, .NET Standard 2.0
- remobjects.elements.eunit.jar Cooper
- EUnit.fx Island, macOS-x86_64
- libEUnit.fx Toffee
- Namespace: RemObjects.Elements.EUnit
Properties
Children
Gets sequence of child elements.
property Children: IEnumerable<ITestResult> read;IEnumerable<ITestResult> Children { get; }// .NET, .NET Standard 2.0, Island, macOS-x86_64
var Children: IEnumerable<ITestResult> { get{} }
// Toffee
var Children: INSFastEnumeration<ITestResult> { get{} }Iterable<ITestResult> Children { __get; }ReadOnly Property Children() As IEnumerable<ITestResult>DisplayName
Gets or sets a display name of test.
property DisplayName: String read write;String DisplayName { get; set; }var DisplayName: String { get{} set{} }String DisplayName { get; set; }Property DisplayName() As StringId
Gets unique identified of this test.
property Id: String read;String Id { get; }var Id: String { get{} }String Id { __get; }ReadOnly Property Id() As StringMessage
Gets resulting message.
property Message: String read;String Message { get; }var Message: String { get{} }String Message { __get; }ReadOnly Property Message() As StringName
Gets name of the test.
property Name: String read;String Name { get; }var Name: String { get{} }String Name { __get; }ReadOnly Property Name() As StringParsableMessage
property ParsableMessage: String read;String ParsableMessage { get; }var ParsableMessage: String { get{} }String ParsableMessage { __get; }ReadOnly Property ParsableMessage() As StringState
Gets state of the test run.
property State: TestState read;TestState State { get; }var State: TestState { get{} }TestState State { __get; }ReadOnly Property State() As TestStateTest
Gets reference to a test that was executed.
property Test: ITest read;ITest Test { get; }var Test: ITest { get{} }ITest Test { __get; }ReadOnly Property Test() As ITest