BaseWriter

Overview

BaseWriter is a base class for all result writer.

This class is used to process results of a test run.

Location

  • Reference:
    • EUnit.fx  Island, macOS
    • RemObjects.Elements.EUnit.dll  .NET, .NET Standard 2.0
    • remobjects.elements.eunit.jar  Cooper
    • libEUnit.fx  Toffee
  • Namespace: RemObjects.Elements.EUnit
  • Platforms: .NET, .NET Standard 2.0, Cooper, Island, macOS, Toffee


 

constructor (ITestResult) .NET, .NET Standard 2.0, Cooper, Island, Toffee

 

constructor(TestResults: ITestResult)

 

BaseWriter(ITestResult TestResults)

 

init(_ TestResults: ITestResult)

 

BaseWriter(ITestResult TestResults)

 

Sub New(TestResults As ITestResult)

Parameters:

  • TestResults:

constructor (ITestResult): InstanceType macOS

Creates a new instance of the class with specified parameters.

 

constructor(TestResults: ITestResult)

 

BaseWriter(ITestResult TestResults)

 

init(_ TestResults: ITestResult)

 

BaseWriter(ITestResult TestResults)

 

Sub New(TestResults As ITestResult)

Parameters:

  • TestResults: Reference to a test result.

Items  virtual

Gets reference to a test result assosiated with this writer.

 

property Items: ITestResult read;

 

ITestResult Items { get; }

 

var Items: ITestResult { get{} }

 

ITestResult Items { __get; }

 

ReadOnly Property Items() As ITestResult

Write  virtual

Writes all test results that matches the conditions defined by the specified predicate.

 

// macOS
method Write(Filter: Predicate<ITestResult>)
// .NET, .NET Standard 2.0, Island
method Write(Filter: RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult>)

 

// macOS
void Write(Predicate<ITestResult> Filter)
// .NET, .NET Standard 2.0, Island
void Write(RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult> Filter)

 

func Write(_ Filter: RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult>)

 

void Write(Predicate<ITestResult> Filter)

 

// macOS
Sub Write(Filter As Predicate<ITestResult>)
// .NET, .NET Standard 2.0, Island
Sub Write(Filter As RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult>)

Parameters:

  • Filter: Block that defines the conditions of the elements to search for.

WriteFailed  virtual

Writes only tests that failed.

 

method WriteFailed(TestcaseOnly: Boolean)

 

void WriteFailed(Boolean TestcaseOnly)

 

func WriteFailed(_ TestcaseOnly: Boolean)

 

void WriteFailed(Boolean TestcaseOnly)

 

Sub WriteFailed(TestcaseOnly As Boolean)

Parameters:

  • TestcaseOnly: Value that indicates whether this method will write only testcases or all types of tests.

WriteFull .NET, .NET Standard 2.0, Cooper, Island, macOS

Writes full test result tree.

 

method WriteFull

 

void WriteFull()

 

func WriteFull()

 

void WriteFull()

 

Sub WriteFull()

WriteFull WriteFull()  virtual Toffee

 

func WriteFull(WriteFull )

Parameters:

  • :

WriteLine  virtual abstract

Writes specified line of text.

 

method WriteLine(Line: String)

 

void WriteLine(String Line)

 

func WriteLine(_ Line: String)

 

void WriteLine(String Line)

 

Sub WriteLine(Line As String)

Parameters:

  • Line: String that will be written.

WriteNode  protected virtual

Recursively writes a specified node if it mets condition defined by predicate.

 

// macOS
method WriteNode(Node: ITestResult; Filter: Predicate<ITestResult>)
// .NET, .NET Standard 2.0, Island
method WriteNode(Node: ITestResult; Filter: RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult>)

 

// macOS
void WriteNode(ITestResult Node, Predicate<ITestResult> Filter)
// .NET, .NET Standard 2.0, Island
void WriteNode(ITestResult Node, RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult> Filter)

 

func WriteNode(_ Node: ITestResult, _ Filter: RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult>)

 

void WriteNode(ITestResult Node, Predicate<ITestResult> Filter)

 

// macOS
Sub WriteNode(Node As ITestResult, Filter As Predicate<ITestResult>)
// .NET, .NET Standard 2.0, Island
Sub WriteNode(Node As ITestResult, Filter As RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult>)

Parameters:

  • Node: Node to write.
  • Filter: Block that defines the conditions of the elements to search for.

WriteSuite  protected virtual abstract

Writes specified suite items.

 

method WriteSuite(Item: ITestResult)

 

void WriteSuite(ITestResult Item)

 

func WriteSuite(_ Item: ITestResult)

 

void WriteSuite(ITestResult Item)

 

Sub WriteSuite(Item As ITestResult)

Parameters:

  • Item: Reference to a test suite to write.

WriteSummary  virtual

Writes summary of the test run.

 

method WriteSummary(IncludeAll: Boolean)

 

void WriteSummary(Boolean IncludeAll)

 

func WriteSummary(_ IncludeAll: Boolean)

 

void WriteSummary(Boolean IncludeAll)

 

Sub WriteSummary(IncludeAll As Boolean)

Parameters:

  • IncludeAll: Value that indicates whether all items should be calculated or only tests and testcases.

WriteTest  protected virtual abstract

Writes specified test items.

 

method WriteTest(Item: ITestResult)

 

void WriteTest(ITestResult Item)

 

func WriteTest(_ Item: ITestResult)

 

void WriteTest(ITestResult Item)

 

Sub WriteTest(Item As ITestResult)

Parameters:

  • Item: Reference to a test to write.

WriteTestcase  protected virtual abstract

Writes specified testcase items.

 

method WriteTestcase(Item: ITestResult)

 

void WriteTestcase(ITestResult Item)

 

func WriteTestcase(_ Item: ITestResult)

 

void WriteTestcase(ITestResult Item)

 

Sub WriteTestcase(Item As ITestResult)

Parameters:

  • Item: Reference to a testcase to write.

 

Items  virtual

Gets reference to a test result assosiated with this writer.

 

property Items: ITestResult read;

 

ITestResult Items { get; }

 

var Items: ITestResult { get{} }

 

ITestResult Items { __get; }

 

ReadOnly Property Items() As ITestResult

 

constructor (ITestResult) .NET, .NET Standard 2.0, Cooper, Island, Toffee

 

constructor(TestResults: ITestResult)

 

BaseWriter(ITestResult TestResults)

 

init(_ TestResults: ITestResult)

 

BaseWriter(ITestResult TestResults)

 

Sub New(TestResults As ITestResult)

Parameters:

  • TestResults:

constructor (ITestResult): InstanceType macOS

Creates a new instance of the class with specified parameters.

 

constructor(TestResults: ITestResult)

 

BaseWriter(ITestResult TestResults)

 

init(_ TestResults: ITestResult)

 

BaseWriter(ITestResult TestResults)

 

Sub New(TestResults As ITestResult)

Parameters:

  • TestResults: Reference to a test result.

Write  virtual

Writes all test results that matches the conditions defined by the specified predicate.

 

// macOS
method Write(Filter: Predicate<ITestResult>)
// .NET, .NET Standard 2.0, Island
method Write(Filter: RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult>)

 

// macOS
void Write(Predicate<ITestResult> Filter)
// .NET, .NET Standard 2.0, Island
void Write(RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult> Filter)

 

func Write(_ Filter: RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult>)

 

void Write(Predicate<ITestResult> Filter)

 

// macOS
Sub Write(Filter As Predicate<ITestResult>)
// .NET, .NET Standard 2.0, Island
Sub Write(Filter As RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult>)

Parameters:

  • Filter: Block that defines the conditions of the elements to search for.

WriteFailed  virtual

Writes only tests that failed.

 

method WriteFailed(TestcaseOnly: Boolean)

 

void WriteFailed(Boolean TestcaseOnly)

 

func WriteFailed(_ TestcaseOnly: Boolean)

 

void WriteFailed(Boolean TestcaseOnly)

 

Sub WriteFailed(TestcaseOnly As Boolean)

Parameters:

  • TestcaseOnly: Value that indicates whether this method will write only testcases or all types of tests.

WriteFull .NET, .NET Standard 2.0, Cooper, Island, macOS

Writes full test result tree.

 

method WriteFull

 

void WriteFull()

 

func WriteFull()

 

void WriteFull()

 

Sub WriteFull()

WriteFull WriteFull()  virtual Toffee

 

func WriteFull(WriteFull )

Parameters:

  • :

WriteLine  virtual abstract

Writes specified line of text.

 

method WriteLine(Line: String)

 

void WriteLine(String Line)

 

func WriteLine(_ Line: String)

 

void WriteLine(String Line)

 

Sub WriteLine(Line As String)

Parameters:

  • Line: String that will be written.

WriteNode  protected virtual

Recursively writes a specified node if it mets condition defined by predicate.

 

// macOS
method WriteNode(Node: ITestResult; Filter: Predicate<ITestResult>)
// .NET, .NET Standard 2.0, Island
method WriteNode(Node: ITestResult; Filter: RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult>)

 

// macOS
void WriteNode(ITestResult Node, Predicate<ITestResult> Filter)
// .NET, .NET Standard 2.0, Island
void WriteNode(ITestResult Node, RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult> Filter)

 

func WriteNode(_ Node: ITestResult, _ Filter: RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult>)

 

void WriteNode(ITestResult Node, Predicate<ITestResult> Filter)

 

// macOS
Sub WriteNode(Node As ITestResult, Filter As Predicate<ITestResult>)
// .NET, .NET Standard 2.0, Island
Sub WriteNode(Node As ITestResult, Filter As RemObjects.Elements.RTL.Predicate<RemObjects.Elements.EUnit.ITestResult>)

Parameters:

  • Node: Node to write.
  • Filter: Block that defines the conditions of the elements to search for.

WriteSuite  protected virtual abstract

Writes specified suite items.

 

method WriteSuite(Item: ITestResult)

 

void WriteSuite(ITestResult Item)

 

func WriteSuite(_ Item: ITestResult)

 

void WriteSuite(ITestResult Item)

 

Sub WriteSuite(Item As ITestResult)

Parameters:

  • Item: Reference to a test suite to write.

WriteSummary  virtual

Writes summary of the test run.

 

method WriteSummary(IncludeAll: Boolean)

 

void WriteSummary(Boolean IncludeAll)

 

func WriteSummary(_ IncludeAll: Boolean)

 

void WriteSummary(Boolean IncludeAll)

 

Sub WriteSummary(IncludeAll As Boolean)

Parameters:

  • IncludeAll: Value that indicates whether all items should be calculated or only tests and testcases.

WriteTest  protected virtual abstract

Writes specified test items.

 

method WriteTest(Item: ITestResult)

 

void WriteTest(ITestResult Item)

 

func WriteTest(_ Item: ITestResult)

 

void WriteTest(ITestResult Item)

 

Sub WriteTest(Item As ITestResult)

Parameters:

  • Item: Reference to a test to write.

WriteTestcase  protected virtual abstract

Writes specified testcase items.

 

method WriteTestcase(Item: ITestResult)

 

void WriteTestcase(ITestResult Item)

 

func WriteTestcase(_ Item: ITestResult)

 

void WriteTestcase(ITestResult Item)

 

Sub WriteTestcase(Item As ITestResult)

Parameters:

  • Item: Reference to a testcase to write.