TestReportObject

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 all

Basic Examples  (2)

Make a report for a list of tests:

Make a dataset of the properties contained in the report:

Make a report for tests in a file:

Make a table of the properties contained in the report:

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:

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

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

BibTeX

@misc{reference.wolfram_2022_testreportobject, author="Wolfram Research", title="{TestReportObject}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/TestReportObject.html}", note=[Accessed: 01-June-2023 ]}

BibLaTeX

@online{reference.wolfram_2022_testreportobject, organization={Wolfram Research}, title={TestReportObject}, year={2014}, url={https://reference.wolfram.com/language/ref/TestReportObject.html}, note=[Accessed: 01-June-2023 ]}