main content

verify code by running tests -凯发k8网页登录

in this step, you verify matlab® code by running tests and viewing the test results using the matlab test manager.

open the matlabshortestpath project.

openproject("matlabshortestpath");

run tests and view results

open the matlab test manager.

matlabtestmanager

run all tests in the project by clicking the run run_16.png button.

test-manager-failed-test.png

the test tdemosmoketest/demoshouldnotwarn fails.

fixed failed test

view the failure diagnostic by clicking the hyperlink in the diagnostic column.

failed-test-tdemo.png

navigate to the source code that errored by clicking the first hyperlink in the failure diagnostic.

incomplete-statement.png

the statement on line 11 is incomplete. complete the statement by adding a parenthesis, then re-run the test.

all tests pass.

see also

apps

related topics

网站地图