TestReportObject

TestReportObject[]
gives an object that represents the results of TestReport.

DetailsDetails

  • 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
    "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
    "TestsSucceededIndices"indices of tests that succeeded
    "TestsFailedIndices"indices of tests that failed
    "TestsFailedWrongResultsIndices"indices of tests that failed with wrong results
    "TestsFailedWithMessagesIndices"indices of tests that failed by generating messages
    "TestsFailedWithErrorsIndices"indices of tests that failed due to errors
    "TimeElapsed"total time elapsed running all the tests
    "Title"title of the test file

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Make a report for a list of tests:

In[1]:=
Click for copyable input
Out[1]=

Make a table of the properties contained in the report:

In[2]:=
Click for copyable input
Out[2]//TableForm=

Make a report for tests in a file:

In[1]:=
Click for copyable input
Out[1]=

Make a table of the properties contained in the report:

In[2]:=
Click for copyable input
Out[2]//TableForm=
Introduced in 2014
(10.0)