Docs · API reference · Motus.Abstractions

IReporter Interface#

Captures and reports test execution results. Multiple reporters can be active simultaneously.

public interface IReporter

Methods#

OnTestEndAsync(TestInfo, TestResult) Method#

Called after each test completes with pass/fail status, duration, error details, and attachments.

System.Threading.Tasks.Task OnTestEndAsync(Motus.Abstractions.TestInfo test, Motus.Abstractions.TestResult result);

Parameters#

test TestInfo

Metadata for the test that just ended.

result TestResult

The outcome including duration, errors, and attachments.

Returns#

System.Threading.Tasks.Task

OnTestRunEndAsync(TestRunSummary) Method#

Called after all tests have executed. Receives aggregate results.

System.Threading.Tasks.Task OnTestRunEndAsync(Motus.Abstractions.TestRunSummary summary);

Parameters#

summary TestRunSummary

Aggregate results for the completed run.

Returns#

System.Threading.Tasks.Task

OnTestRunStartAsync(TestSuiteInfo) Method#

Called before any tests execute. Receives the full test suite metadata.

System.Threading.Tasks.Task OnTestRunStartAsync(Motus.Abstractions.TestSuiteInfo suite);

Parameters#

suite TestSuiteInfo

Metadata for the test suite that is about to run.

Returns#

System.Threading.Tasks.Task

OnTestStartAsync(TestInfo) Method#

Called before each individual test executes.

System.Threading.Tasks.Task OnTestStartAsync(Motus.Abstractions.TestInfo test);

Parameters#

test TestInfo

Metadata for the test that is about to run.

Returns#

System.Threading.Tasks.Task