polyspace.test.generateTests
R2026bSyntax
Description
Generate Tests for Boundary Values or Coverage Objectives
generates tests for boundary values or coverage objectives within the default test suite
of the project testGenerationResults = polyspace.test.generateTests(proj, codeConfig, testOptions)proj. Use codeConfig to specify
options specific to the code under test and testOptions to customize
the boundary testing strategy or code coverage objectives. If the project does not contain
a default test suite and at least one test is generated, the test generator creates a
default test suite.
generates tests within the suite named testGenerationResults = polyspace.test.generateTests(___, Suite=testSuiteName)testSuiteName in the project
proj. If the project does not contain a test suite with this name
and at least one test is generated, the test generator creates a test suite with name
testSuiteName.
generates tests within the test suite object testGenerationResults = polyspace.test.generateTests(___, Suite=testSuite)testSuite in the project
proj.
Generate Tests for Defects with Counterexamples
generates non-regression tests from Polyspace®
Bug Finder™ analysis results in testGenerationResults = polyspace.test.generateTests(proj, staticAnalysisFile)staticAnalysisFile. The generated
tests exercise the code under test with counterexamples produced by static analysis. The
generated tests are contained within the default test suite of the project
proj. If the project does not contain a default test suite and at
least one test is generated, the test generator creates a default test suite.
generates tests within the suite named testGenerationResults = polyspace.test.generateTests(___, Suite=testSuiteName)testSuiteName in the project
proj. If the project does not contain a test suite with this name
and at least one test is generated, the test generator creates a test suite with name
testSuiteName.
generates tests within the test suite object testGenerationResults = polyspace.test.generateTests(___, Suite=testSuite)testSuite in the project
proj.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2026b