ProcessExecutor

An executor that will run every test in a separate process

Constructors

this
this(TestProcessRun testProcessRun)

Instantiate the executor with a custom process runner

this
this()

Instantiate the executor with a custom process runner

Members

Aliases

TestProcessRun
alias TestProcessRun = void function(string suiteName, string testName, VisualTrialReporterParser parser)

A function that should spawn a process that will run the test

runTest
alias runTest = DefaultExecutor.runTest
Undocumented in source.

Functions

onOutput
void onOutput(string line)
Undocumented in source. Be warned that the author may not have intended to support it.
runTest
void runTest(const(TestCase) testCase, TestResult testResult)

Run a test case

Inherited Members

From DefaultExecutor

attach
void attach(Attachment attachment)

Called when an attachment is ready

begin
void begin(string suite, string test, StepResult step)

Add the step result and update the other listeners on every step

end
void end(string suite, string test, StepResult step)

Update the other listeners on every step

beginExecution
SuiteResult[] beginExecution(const(TestCase)[] )

It does nothing

endExecution
SuiteResult[] endExecution()

Return the result for the last executed suite

runTest
void runTest(const(TestCase) testCase, TestResult testResult)

Run a test case

createTestResult
void createTestResult(const(TestCase) testCase)

Convert a test case to a test result

execute
SuiteResult[] execute(const(TestCase) testCase)

Execute a test case

Meta