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
- libEUnit.fx Toffee
- Namespace: RemObjects.Elements.EUnit
- Platforms: .NET, .NET Standard 2.0, Cooper, Island, macOS, Toffee
Properties
Children
Gets sequence of child elements.
property Children: IEnumerable<ITest> read;
IEnumerable<ITest> Children { get; }
// .NET, .NET Standard 2.0, Island, macOS
var Children: IEnumerable<ITest> { get{} }
// Toffee
var Children: INSFastEnumeration<ITest> { 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 String
Id
Gets unique identified of this test.
property Id: String read;
String Id { get; }
var Id: String { get{} }
String Id { __get; }
ReadOnly Property Id() As String
Kind
Gets type of test.
property Kind: TestKind read;
TestKind Kind { get; }
var Kind: TestKind { get{} }
TestKind Kind { __get; }
ReadOnly Property Kind() As TestKind
Method macOS
property Method: MethodInfo read;
MethodInfo Method { get; }
var Method: MethodInfo { get{} }
MethodInfo Method { __get; }
ReadOnly Property Method() As MethodInfo
Method .NET, .NET Standard 2.0, Cooper, Island, Toffee
Gets reference to a runtime method of this tests. Can be nil if tests does not reference any method.
// .NET, .NET Standard 2.0
property Method: MethodInfo read;
// Island
property Method: MethodInfo read;
// .NET, .NET Standard 2.0
MethodInfo Method { get; }
// Island
MethodInfo Method { get; }
// .NET, .NET Standard 2.0
var Method: MethodInfo { get{} }
// Island
var Method: MethodInfo { get{} }
// Toffee
var Method: Method { get{} }
Method Method { __get; }
// .NET, .NET Standard 2.0
ReadOnly Property Method() As MethodInfo
// Island
ReadOnly Property Method() As MethodInfo
Name
Gets name of the test.
property Name: String read;
String Name { get; }
var Name: String { get{} }
String Name { __get; }
ReadOnly Property Name() As String
Skip
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 Boolean
Type
Gets reference to a runtime type of this tests. Can be nil if tests does not reference any type.
// .NET, .NET Standard 2.0, macOS
property Type: Type read;
// Island
property Type: Type read;
// .NET, .NET Standard 2.0, macOS
Type Type { get; }
// Island
Type Type { get; }
// .NET, .NET Standard 2.0, macOS
var Type: Type { get{} }
// Island
var Type: Type { get{} }
// Toffee
var Type: Class { get{} }
Class Type { __get; }
// .NET, .NET Standard 2.0, macOS
ReadOnly Property Type() As Type
// Island
ReadOnly Property Type() As Type