TestResultObject

TestResultObject[]

gives an object that represents the results of a VerificationTest.

Details

  • TestResultObject is typically obtained as a result from VerificationTest.
  • TestResultObject[]["prop"] returns the value of "prop" for a given TestResultObject.
  • TestResultObject[][{"prop1","prop2",}] returns an association of values corresponding to several properties.
  • TestResultObject[]["Properties"] returns a list of all properties available.
  • Possible properties for TestResultObject include:
  • "AbsoluteTimeUsed"absolute number of seconds in real time that have elapsed
    "ActualMessages"messages generated on evaluating input
    "ActualOutput"output generated on evaluating input
    "CPUTimeUsed"CPU time spent on evaluating input
    "ExpectedMessages"messages passed to the test
    "ExpectedOutput"evaluated expected output
    "MemoryUsed"number of bytes used to store all data
    "Outcome"outcome on running the VerificationTest
    "TestID"unique identifier for the test
    "TestIndex"automatic index that is incremented for every test

Examples

Basic Examples  (2)

Run a VerificationTest to get a TestResultObject:

Extract output generated on evaluation of input:

List of all properties:

Extract several properties at once:

Extract all properties and present results in a Dataset:

Wolfram Research (2014), TestResultObject, Wolfram Language function, https://reference.wolfram.com/language/ref/TestResultObject.html.

Text

Wolfram Research (2014), TestResultObject, Wolfram Language function, https://reference.wolfram.com/language/ref/TestResultObject.html.

BibTeX

@misc{reference.wolfram_2020_testresultobject, author="Wolfram Research", title="{TestResultObject}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/TestResultObject.html}", note=[Accessed: 03-December-2020 ]}

BibLaTeX

@online{reference.wolfram_2020_testresultobject, organization={Wolfram Research}, title={TestResultObject}, year={2014}, url={https://reference.wolfram.com/language/ref/TestResultObject.html}, note=[Accessed: 03-December-2020 ]}

CMS

Wolfram Language. 2014. "TestResultObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TestResultObject.html.

APA

Wolfram Language. (2014). TestResultObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TestResultObject.html