TestReportObject
gives an object that represents the results of TestReport.
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[…][{"prop","subprop"}] returns an association of TestResultObject values corresponding to tests satisfying subprop.
- TestReportObject[…]["Properties"] returns a list of all properties available.
- Possible properties for TestReportObject include:
-
"Aborted" whether the test file was aborted before completing "AllTestsSucceeded" whether all tests ran without any failures or aborts "TestResults" list of all test results "TestResultRules" an association containing test results for each category "TestsSucceeded" test results for all tests that succeeded "TestsFailed" test results for all tests that failed "TestsFailedWrongResults" test results for all tests that failed with wrong results "TestsFailedWithMessages" test results for all tests that failed by generating messages "TestsFailedWithErrors" test results for all tests that failed due to errors "TestsSucceededCount" number of tests that succeeded "TestsFailedCount" number of tests that failed "TestsFailedWrongResultsCount" number of tests that failed with wrong results "TestsFailedWithMessagesCount" number of tests that failed by generating messages "TestsFailedWithErrorsCount" number of tests that failed due to errors "TestsSucceededKeys" keys of tests that succeeded "TestsFailedKeys" keys of tests that failed "TestsFailedWrongResultsKeys" keys of tests that failed with wrong results "TestsFailedWithMessagesKeys" keys of tests that failed by generating messages "TestsFailedWithErrorsKeys" keys of tests that failed due to errors "TimeElapsed" total time elapsed running all the tests "Title" title of the test file
Examples
open allclose allBasic Examples (2)
Applications (1)
Create a TestReportObject:
Use the "VerificationTest" property on every test in the report:
Use ReleaseHold to run the test suite again:
Use Export to save the test suite as a file:
Use TestReport to run the exported test suite again:
Text
Wolfram Research (2014), TestReportObject, Wolfram Language function, https://reference.wolfram.com/language/ref/TestReportObject.html.
CMS
Wolfram Language. 2014. "TestReportObject." Wolfram Language & System Documentation Center. Wolfram Research. 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