ITest
Overview
Represents discovered test tree.
The concrete implementation of this interface is returned by the Discovery class as a result of test search, also this interface is consumed by the Runner class to execute tests.
Use case
//locates all tests
var Discovered: ITest := Discovery.DiscoverTests;
//Executes tests
Runner.RunTests(Discovered) withListener(new ConsoleTestListener);
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<ITest> read;IEnumerable<ITest> Children { get; }// .NET, .NET Standard 2.0, Island, macOS-x86_64
var Children: IEnumerable<ITest> { get{} }
// Toffee
var Children: INSFastEnumeration<ITest> { get{} }Iterable<ITest> Children { __get; }ReadOnly Property Children() As IEnumerable<ITest>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 StringKind
Gets type of test.
property Kind: TestKind read;TestKind Kind { get; }var Kind: TestKind { get{} }TestKind Kind { __get; }ReadOnly Property Kind() As TestKindMethod
Gets reference to a runtime method of this tests. Can be nil if tests does not reference any method.
property Method: MethodInfo read;MethodInfo Method { get; }// .NET, .NET Standard 2.0, Island, macOS-x86_64
var Method: MethodInfo { get{} }
// Toffee
var Method: Method { get{} }Method Method { __get; }ReadOnly Property Method() As MethodInfoName
Gets name of the test.
property Name: String read;String Name { get; }var Name: String { get{} }String Name { __get; }ReadOnly Property Name() As StringSkip
Gets or sets value that indicates whether test should be skipped by the runner.
property Skip: Boolean read write;Boolean Skip { get; set; }var Skip: Boolean { get{} set{} }Boolean Skip { get; set; }Property Skip() As BooleanType
Gets reference to a runtime type of this tests. Can be nil if tests does not reference any type.
property Type: Type read;Type Type { get; }// .NET, .NET Standard 2.0, Island, macOS-x86_64
var Type: Type { get{} }
// Toffee
var Type: Class { get{} }Class Type { __get; }ReadOnly Property Type() As Type