TestReportObject
✖
TestReportObject
Details

- TestReportObject is typically obtained as a result from TestReport.
- TestReportObject[…]["prop"] returns the value of "prop" for a given TestReportObject.
- TestReportObject[…][{"prop1","prop2",…}] returns an association of values corresponding to several properties.
- TestReportObject[…]["Properties"] returns a list of all properties available.
- Possible properties for TestReportObject include:
-
"Results" all test results as a List "ResultsDataset" all test results as a Dataset "ResultsByOutcome" test results grouped by "Outcome" property "ResultsByTestFileName" test results grouped by "TestFileName" property "ResultsByTestID" test results grouped by "TestID" property "RuntimeFailures" non-test failures generated during the test run "ReportSucceeded" whether all tests succeeded without emitting failures "MemoryUsed" number of bytes used to store all data "CPUTimeUsed" CPU time spent on evaluating tests "AbsoluteTimeUsed" absolute number of seconds in real time that have elapsed "Title" title of the test file
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Applications (1)Sample problems that can be solved with this function
Create a TestReportObject:

https://wolfram.com/xid/0bnh3yvq70zu6-8nndti

Use the "TestCreate" property on every test in the report:

https://wolfram.com/xid/0bnh3yvq70zu6-l8hdkb

Use ReleaseHold to run the test suite again:

https://wolfram.com/xid/0bnh3yvq70zu6-9snyf7

Use Export to save the test suite as a file:

https://wolfram.com/xid/0bnh3yvq70zu6-iotw15

Use TestReport to run the exported test suite again:

https://wolfram.com/xid/0bnh3yvq70zu6-puho0l

Properties & Relations (10)Properties of the function, and connections to other functions
Properties (10)
"ResultList" (1)
Use the "Results" property to extract all tests as a List:

https://wolfram.com/xid/0bnh3yvq70zu6-wtbdnk


https://wolfram.com/xid/0bnh3yvq70zu6-2r9hjr

Use Part to extract only tests you are interested in:

https://wolfram.com/xid/0bnh3yvq70zu6-tt18r4


https://wolfram.com/xid/0bnh3yvq70zu6-5d8aey


"ResultDataset" (1)
Use the "ResultsDataset" property to extract all tests as a Dataset:

https://wolfram.com/xid/0bnh3yvq70zu6-vr2nqq


https://wolfram.com/xid/0bnh3yvq70zu6-9rhz2n

Use Part to extract only tests you are interested in:

https://wolfram.com/xid/0bnh3yvq70zu6-4qz5l1

"ResultsByOutcome" (1)
Use the "ResultsByOutcome" property to get a grouped list of tests:

https://wolfram.com/xid/0bnh3yvq70zu6-d910b5


https://wolfram.com/xid/0bnh3yvq70zu6-cgagrt

Use Part to extract only tests you are interested in:

https://wolfram.com/xid/0bnh3yvq70zu6-6ds12a


https://wolfram.com/xid/0bnh3yvq70zu6-lnvuo0

"ResultsByTestFileName" (1)
"ResultsByTestID" (1)
Use the "ResultsByTestID" property to return all tests grouped by test ID:

https://wolfram.com/xid/0bnh3yvq70zu6-54p85l


https://wolfram.com/xid/0bnh3yvq70zu6-sb0dgs

Use Part syntax to extract only tests you are interested in:

https://wolfram.com/xid/0bnh3yvq70zu6-uisl7o

Use TestEvaluate to run the tests again:

https://wolfram.com/xid/0bnh3yvq70zu6-vv6t7a

"RuntimeFailures" (1)
A defective TestReport might emit some failures at runtime:

https://wolfram.com/xid/0bnh3yvq70zu6-kbl4nw


Use the "RuntimeFailures" property to display all error events as Failure objects:

https://wolfram.com/xid/0bnh3yvq70zu6-bzjf94

"ReportSucceeded" (4)
The "ReportSucceeded" property will return True if and only if all the tests succeeded and none emitted runtime failures:

https://wolfram.com/xid/0bnh3yvq70zu6-fs41h7


https://wolfram.com/xid/0bnh3yvq70zu6-ur4t2i

A report with any test that resulted in an "Outcome" different from "Succeeded" will return False:

https://wolfram.com/xid/0bnh3yvq70zu6-8p5v0f


https://wolfram.com/xid/0bnh3yvq70zu6-bkjr0n

A report with one or more "RuntimeFailures" in it will always return False, even if all tests succeeded:

https://wolfram.com/xid/0bnh3yvq70zu6-lymafb



https://wolfram.com/xid/0bnh3yvq70zu6-u6il90

The success rate excludes unevaluated tests:

https://wolfram.com/xid/0bnh3yvq70zu6-lix9b0

https://wolfram.com/xid/0bnh3yvq70zu6-qdjx3f

Wolfram Research (2014), TestReportObject, Wolfram Language function, https://reference.wolfram.com/language/ref/TestReportObject.html (updated 2023).
Text
Wolfram Research (2014), TestReportObject, Wolfram Language function, https://reference.wolfram.com/language/ref/TestReportObject.html (updated 2023).
Wolfram Research (2014), TestReportObject, Wolfram Language function, https://reference.wolfram.com/language/ref/TestReportObject.html (updated 2023).
CMS
Wolfram Language. 2014. "TestReportObject." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/TestReportObject.html.
Wolfram Language. 2014. "TestReportObject." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/TestReportObject.html.
APA
Wolfram Language. (2014). TestReportObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TestReportObject.html
Wolfram Language. (2014). TestReportObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TestReportObject.html
BibTeX
@misc{reference.wolfram_2025_testreportobject, author="Wolfram Research", title="{TestReportObject}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/TestReportObject.html}", note=[Accessed: 07-July-2025
]}
BibLaTeX
@online{reference.wolfram_2025_testreportobject, organization={Wolfram Research}, title={TestReportObject}, year={2023}, url={https://reference.wolfram.com/language/ref/TestReportObject.html}, note=[Accessed: 07-July-2025
]}