main content

check test coverage -凯发k8网页登录

implement, evaluate, and increase test coverage

test coverage is how completely the model and generated code are tested. if you have simulink® coverage™, you can evaluate your test coverage by using test cases and test suites to exercise model components that correspond to the design requirements. if you have requirements toolbox™, you can trace coverage to specific requirements, and you can resolve coverage issues by explicitly excluding some requirements from needing tests. if you have simulink design verifier™, you can create additional test inputs to exercise more of the model components.

classes

modify coverage settings
specify coverage metrics for tests run with matlab unit test framework
add tests to increase coverage
options for adding test coverage

topics


  • use coverage measurement to assess the extent of your tests.


  • use simulink design verifier to generate tests that extend coverage and recreate design errors, and add generated tests to your test file.


  • tag tests for selective test execution, and filter results and test coverage.


  • analyze functional dependencies, test model components in isolation, create suites of test cases, test models, and code to achieve coverage.

网站地图