polyspace.test.TestResults Class
Namespace: polyspace.test
Description
This Python® class contains test results that you obtain after running C/C++ tests on a Polyspace® Platform project or reading directly from a C/C++ test result file (.pstestr). Use an object of this class to package results as necessary, or generate reports.
Creation
Syntax
Description
testResults = polyspace.test.run( runs the test executable generated by building the source code and test files in the project proj)proj and stores the results in the results object testResults. For extensions of this syntax, see polyspace.test.run.
testResults = polyspace.test.TestResults( loads the results stored in the testResultsPSTESTRFile).pstestr file testResultsPSTESTRFile into the results object testResults.
testResults = polyspace.test.TestResults.fromMRF( loads the results stored in the testResultsMRFFile).mrf file testResultsMRFFile into the results object testResults.
testResults = polyspace.test.TestResults.fromXML( loads the results stored in the testResultsXMLFile).xml file testResultsXMLFile into the results object testResults.