Members
-
errors :Array.<NexusHoratio.xunit~TestResult~MethodResult>
-
Description
Unexpected exceptions.
Details
-
failures :Array.<NexusHoratio.xunit~TestResult~MethodResult>
-
Description
Explicit test failures.
Details
-
skipped :Array.<NexusHoratio.xunit~TestResult~MethodResult>
-
Description
Skipped tests.
Details
-
successes :Array.<NexusHoratio.xunit~TestResult~MethodResult>
-
Description
Successes.
Details
-
tests :Map.<string, NexusHoratio.xunit~TestExecution>
-
Description
All test executions.
Details
Methods
-
addError( methodName, exception )
-
Description
Record an unexpected exception from a execution.
Parameters
Name Type Description methodNamestring Name of the associated
NexusHoratio.xunit.TestCasemethod.exceptionError Exception caught.
Details
-
addFailure( methodName, message )
-
Description
Record a test failure.
Parameters
Name Type Description methodNamestring Name of the associated
NexusHoratio.xunit.TestCasemethod.messagestring Message from the test or framework.
Details
-
addSkip( methodName, message )
-
Description
Record a test skipped.
Parameters
Name Type Description methodNamestring Name of the associated
NexusHoratio.xunit.TestCasemethod.messagestring Reason the test was skipped.
Details
-
addSuccess( methodName )
-
Description
Record a successful execution.
Parameters
Name Type Description methodNamestring Name of the associated
NexusHoratio.xunit.TestCasemethod.Details
-
startTest( methodName )
-
Description
Record the start of a test execution.
Parameters
Name Type Description methodNamestring Name of the associated
NexusHoratio.xunit.TestCasemethod.Details
-
stopTest( methodName )
-
Description
Record the stop of a test execution.
Parameters
Name Type Description methodNamestring Name of the associated
NexusHoratio.xunit.TestCasemethod.Details
-
wasSuccessful() → {boolean}
-
Returns
Details
-
summary( [ formatted ] ) → {Array.<string>}
-
Description
Text summary of the results.
Useful for test runners.
Parameters
Name Type Attributes Default Description formattedboolean <optional> false Try to line things up in columns.
Returns
Details
Type Definitions
-
MethodResult
-
Properties
Name Type Attributes Description methodNamestring Name of the associated
NexusHoratio.xunit.TestCasemethod.errorstring <nullable> Name of caught exception.
messagestring Message from the test or framework.
Details