ecl-logo Documentation

EmeraldTestResult

EmeraldTestResult[association]result

represents the results of executing a single EmeraldTest.

Details

  • Properties can be accessed via EmeraldTestResult[...]["Property"]
  • Multiple Properties can be accessed via EmeraldTestResult[...][{"Property1","Property2"}]
  • Properties:
  • Name
    Description
    DescriptionThe description of the test which was run.
    CategoryThe category for the test.
    SubCategoryTge sub-category for the test.
    OutcomeOutcome of the test execution. May be one of "Success", "ResultFailure", "MessageFailure", "TimeoutFailure".
    PassedBoolean value for whether or not the test Outcome was 'Success'
    ExpressionDeferred version of expression that was executed in the test.
    ActualValueActual value returned from executing the test expression.
    ExpectedValueExpected value from executing the test expression.
    ActualMessagesA list of messages thrown during the execution of the test expression.
    ExpectedMessagesA list of messages expected to be thrown during the execution of the test expression.
    TimeConstraintMaximum time (in seconds) the test expression was allowed to execute for before aborting and resulting in a 'TimeoutFailure'.
    ExecutionTimeThe amount of time (in seconds) the test expression took to run.
    EquivalenceFunctionThe function which was used to compare the expected value to the actual value.
  • Input
    Output

Examples

Basic Examples  (3)

RunTest returns an EmeraldTestResult:

Extract the Actual Value from an EmeraldTestResult:

Extract multiple properties from an EmeraldTestResult: