Runner

Overview

Discovery is a helper class that provide methods for starting test runs.

Use case

You will use this class to start test runs:

    //locates all tests
    var Discovered := Discovery.DiscoverTests;
    //Executes tests
    Runner.RunTests(Discovered) withListener(new ConsoleTestListener);

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  protected Cooper, Island, macOS

 

constructor

 

Runner()

 

init()

 

Runner()

 

Sub New()

RunTests (ITest) withListener(IEventListener): ITestResult  virtual

 

class method RunTests(Test: ITest) withListener(Listener: IEventListener): ITestResult

 

static ITestResult RunTests(ITest Test) withListener(IEventListener Listener)

 

static func RunTests(_ Test: ITest, withListener Listener: IEventListener) -> ITestResult

 

static ITestResult RunTests(ITest Test) withListener(IEventListener Listener)

 

Shared Function RunTests(Test As ITest) withListener(Listener As IEventListener) As ITestResult

Parameters:

  • Test:
  • Listener:

RunTests (ITest): ITestResult  virtual

 

class method RunTests(Test: ITest): ITestResult

 

static ITestResult RunTests(ITest Test)

 

static func RunTests(_ Test: ITest) -> ITestResult

 

static ITestResult RunTests(ITest Test)

 

Shared Function RunTests(Test As ITest) As ITestResult

Parameters:

  • Test:

RunTestsAsync (ITest) completionHandler(Action<RemObjects.Elements.EUnit.ITestResult>)  virtual .NET, .NET Standard 2.0, Cooper, Toffee

 

class method RunTestsAsync(Test: ITest) completionHandler(Handler: Action<RemObjects.Elements.EUnit.ITestResult>)

 

static void RunTestsAsync(ITest Test) completionHandler(Action<RemObjects.Elements.EUnit.ITestResult> Handler)

 

static func RunTestsAsync(_ Test: ITest, completionHandler Handler: Action<RemObjects.Elements.EUnit.ITestResult>)

 

static void RunTestsAsync(ITest Test) completionHandler(Action1<ITestResult> Handler)

 

Shared Sub RunTestsAsync(Test As ITest) completionHandler(Handler As Action<RemObjects.Elements.EUnit.ITestResult>)

Parameters:

  • Test:
  • Handler:

RunTestsAsync (ITest) completionHandler(Action<RemObjects.Elements.EUnit.ITestResult>) withListener(IEventListener)  virtual .NET, .NET Standard 2.0, Cooper, Toffee

 

class method RunTestsAsync(Test: ITest) completionHandler(Handler: Action<RemObjects.Elements.EUnit.ITestResult>) withListener(Listener: IEventListener)

 

static void RunTestsAsync(ITest Test) completionHandler(Action<RemObjects.Elements.EUnit.ITestResult> Handler) withListener(IEventListener Listener)

 

static func RunTestsAsync(_ Test: ITest, completionHandler Handler: Action<RemObjects.Elements.EUnit.ITestResult>, withListener Listener: IEventListener)

 

static void RunTestsAsync(ITest Test) completionHandler(Action1<ITestResult> Handler) withListener(IEventListener Listener)

 

Shared Sub RunTestsAsync(Test As ITest) completionHandler(Handler As Action<RemObjects.Elements.EUnit.ITestResult>) withListener(Listener As IEventListener)

Parameters:

  • Test:
  • Handler:
  • Listener:

RunTestsAsync (ITest) completionHandler(Action<RemObjects.Elements.EUnit.ITestResult>) withListener(IEventListener) cancelationToken(ICancelationToken)  virtual .NET, .NET Standard 2.0, Cooper, Toffee

 

class method RunTestsAsync(Test: ITest) completionHandler(Handler: Action<RemObjects.Elements.EUnit.ITestResult>) withListener(Listener: IEventListener) cancelationToken(Token: ICancelationToken)

 

static void RunTestsAsync(ITest Test) completionHandler(Action<RemObjects.Elements.EUnit.ITestResult> Handler) withListener(IEventListener Listener) cancelationToken(ICancelationToken Token)

 

static func RunTestsAsync(_ Test: ITest, completionHandler Handler: Action<RemObjects.Elements.EUnit.ITestResult>, withListener Listener: IEventListener, cancelationToken Token: ICancelationToken)

 

static void RunTestsAsync(ITest Test) completionHandler(Action1<ITestResult> Handler) withListener(IEventListener Listener) cancelationToken(ICancelationToken Token)

 

Shared Sub RunTestsAsync(Test As ITest) completionHandler(Handler As Action<RemObjects.Elements.EUnit.ITestResult>) withListener(Listener As IEventListener) cancelationToken(Token As ICancelationToken)

Parameters:

  • Test:
  • Handler:
  • Listener:
  • Token:

 

RunTests (ITest) withListener(IEventListener): ITestResult  virtual

 

class method RunTests(Test: ITest) withListener(Listener: IEventListener): ITestResult

 

static ITestResult RunTests(ITest Test) withListener(IEventListener Listener)

 

static func RunTests(_ Test: ITest, withListener Listener: IEventListener) -> ITestResult

 

static ITestResult RunTests(ITest Test) withListener(IEventListener Listener)

 

Shared Function RunTests(Test As ITest) withListener(Listener As IEventListener) As ITestResult

Parameters:

  • Test:
  • Listener:

RunTests (ITest): ITestResult  virtual

 

class method RunTests(Test: ITest): ITestResult

 

static ITestResult RunTests(ITest Test)

 

static func RunTests(_ Test: ITest) -> ITestResult

 

static ITestResult RunTests(ITest Test)

 

Shared Function RunTests(Test As ITest) As ITestResult

Parameters:

  • Test:

RunTestsAsync (ITest) completionHandler(Action<RemObjects.Elements.EUnit.ITestResult>)  virtual .NET, .NET Standard 2.0, Cooper, Toffee

 

class method RunTestsAsync(Test: ITest) completionHandler(Handler: Action<RemObjects.Elements.EUnit.ITestResult>)

 

static void RunTestsAsync(ITest Test) completionHandler(Action<RemObjects.Elements.EUnit.ITestResult> Handler)

 

static func RunTestsAsync(_ Test: ITest, completionHandler Handler: Action<RemObjects.Elements.EUnit.ITestResult>)

 

static void RunTestsAsync(ITest Test) completionHandler(Action1<ITestResult> Handler)

 

Shared Sub RunTestsAsync(Test As ITest) completionHandler(Handler As Action<RemObjects.Elements.EUnit.ITestResult>)

Parameters:

  • Test:
  • Handler:

RunTestsAsync (ITest) completionHandler(Action<RemObjects.Elements.EUnit.ITestResult>) withListener(IEventListener)  virtual .NET, .NET Standard 2.0, Cooper, Toffee

 

class method RunTestsAsync(Test: ITest) completionHandler(Handler: Action<RemObjects.Elements.EUnit.ITestResult>) withListener(Listener: IEventListener)

 

static void RunTestsAsync(ITest Test) completionHandler(Action<RemObjects.Elements.EUnit.ITestResult> Handler) withListener(IEventListener Listener)

 

static func RunTestsAsync(_ Test: ITest, completionHandler Handler: Action<RemObjects.Elements.EUnit.ITestResult>, withListener Listener: IEventListener)

 

static void RunTestsAsync(ITest Test) completionHandler(Action1<ITestResult> Handler) withListener(IEventListener Listener)

 

Shared Sub RunTestsAsync(Test As ITest) completionHandler(Handler As Action<RemObjects.Elements.EUnit.ITestResult>) withListener(Listener As IEventListener)

Parameters:

  • Test:
  • Handler:
  • Listener:

RunTestsAsync (ITest) completionHandler(Action<RemObjects.Elements.EUnit.ITestResult>) withListener(IEventListener) cancelationToken(ICancelationToken)  virtual .NET, .NET Standard 2.0, Cooper, Toffee

 

class method RunTestsAsync(Test: ITest) completionHandler(Handler: Action<RemObjects.Elements.EUnit.ITestResult>) withListener(Listener: IEventListener) cancelationToken(Token: ICancelationToken)

 

static void RunTestsAsync(ITest Test) completionHandler(Action<RemObjects.Elements.EUnit.ITestResult> Handler) withListener(IEventListener Listener) cancelationToken(ICancelationToken Token)

 

static func RunTestsAsync(_ Test: ITest, completionHandler Handler: Action<RemObjects.Elements.EUnit.ITestResult>, withListener Listener: IEventListener, cancelationToken Token: ICancelationToken)

 

static void RunTestsAsync(ITest Test) completionHandler(Action1<ITestResult> Handler) withListener(IEventListener Listener) cancelationToken(ICancelationToken Token)

 

Shared Sub RunTestsAsync(Test As ITest) completionHandler(Handler As Action<RemObjects.Elements.EUnit.ITestResult>) withListener(Listener As IEventListener) cancelationToken(Token As ICancelationToken)

Parameters:

  • Test:
  • Handler:
  • Listener:
  • Token:

 

constructor  protected Cooper, Island, macOS

 

constructor

 

Runner()

 

init()

 

Runner()

 

Sub New()