trial.interfaces

A module containing the interfaces used for extending the test runner

Members

Aliases

TestCaseDelegate
alias TestCaseDelegate = void delegate() @(system)

Alias to a Test Case function type

TestCaseFunction
alias TestCaseFunction = void function() @(system)
Undocumented in source.

Classes

LifeCycleListeners
class LifeCycleListeners

The lifecycle listeners collections. You must use this instance in order to extend the runner. You can have as many listeners as you want. The only restriction is for ITestExecutor, which has no sense to have more than one instance for a run

PendingTestException
class PendingTestException

An exception that should be thrown by the pending test cases

StepResult
class StepResult

A step result

TestResult
class TestResult

A test result

Functions

toJsonString
string toJsonString(Throwable throwable)

Convert a Throwable to a json string

toTestResult
TestResult toTestResult(TestCase testCase)

Interfaces

IAttachmentListener
interface IAttachmentListener

A Listener for handling attachments

ILifecycleListener
interface ILifecycleListener

A Listener for the main test events

IStepLifecycleListener
interface IStepLifecycleListener

A Listener for the step events

ISuiteLifecycleListener
interface ISuiteLifecycleListener

A Listener for the suite events

ITestCaseLifecycleListener
interface ITestCaseLifecycleListener

A Listener for the test case events

ITestDescribe
interface ITestDescribe

A listener that provides test cases contained in a certain file

ITestDiscovery
interface ITestDiscovery

A listener that provides test cases to be executed

ITestExecutor
interface ITestExecutor

A Listener that can run tests. During the test execution can be used only one instance of this listance. After all the tests were executed the result of all three methods are concatenated and passed to ILifecycleListener.end(SuiteResult[])

Structs

Attachment
struct Attachment

A struct representing an attachment for test steps

Feature
struct Feature

Attribute that sets the feaure label

Flaky
struct Flaky

Attribute that marks the test as flaky. Different reporters will interpret this information in different ways.

Issue
struct Issue

Attribute that links an issue to a test. Some test reporters can display links, so the value can be also a link.

Label
struct Label

A struct representing a label for test results

SourceLocation
struct SourceLocation

Represents a line of code in a certain file.

Story
struct Story

Attribute that sets the story label

SuiteResult
struct SuiteResult

A suite result

TestCase
struct TestCase

A test case that will be executed

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Szabo Bogdan