File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ jobs:
226226 - matlab/run-tests :
227227 select-by-folder : simtests
228228 model-coverage-cobertura : model-coverage/coverage.xml
229+ model-coverage-html : model-coverage/html
229230 test-results-pdf : test-results/matlab/pdfresults.pdf
230231 test-results-simulink-test : test-results/matlab/simulinkTest.mldatx
231232 - run :
@@ -246,6 +247,12 @@ jobs:
246247 set -e
247248 grep -q simple_model model-coverage/coverage.xml
248249 shell : bash
250+ - run :
251+ name : Verify HTML model coverage report was created
252+ command : |
253+ set -e
254+ grep -r "simple_model Coverage Report" --include="*.html" model-coverage/html
255+ shell : bash
249256
250257workflows :
251258 test-deploy :
Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ parameters:
4646 Path to write model coverage report in Cobertura XML format.
4747 type : string
4848 default : ' '
49+ model-coverage-html :
50+ description : >
51+ Path to write model coverage report in HTML format.
52+ type : string
53+ default : ' '
4954 test-results-simulink-test :
5055 description : >
5156 Path to export Simulink Test Manager results in MLDATX format.
7378 PARAM_SELECT_BY_FOLDER : <<parameters.select-by-folder>>
7479 PARAM_SELECT_BY_TAG : <<parameters.select-by-tag>>
7580 PARAM_MODEL_COVERAGE_COBERTURA : <<parameters.model-coverage-cobertura>>
81+ PARAM_MODEL_COVERAGE_HTML : <<parameters.model-coverage-html>>
7682 PARAM_TEST_RESULTS_SIMULINK_TEST : <<parameters.test-results-simulink-test>>
7783 PARAM_TEST_RESULTS_HTML : <<parameters.test-results-html>>
7884 PARAM_TEST_RESULTS_PDF : <<parameters.test-results-pdf>>
Original file line number Diff line number Diff line change 2626 'SelectByFolder','${PARAM_SELECT_BY_FOLDER} ',\
2727 'SelectByTag','$PARAM_SELECT_BY_TAG ',\
2828 'CoberturaModelCoverage','${PARAM_MODEL_COVERAGE_COBERTURA} ',\
29+ 'HTMLModelCoverage','${PARAM_MODEL_COVERAGE_HTML} ',\
2930 'SimulinkTestResults','${PARAM_TEST_RESULTS_SIMULINK_TEST} ',\
3031 'HTMLTestReport','${PARAM_TEST_RESULTS_HTML} ',\
3132 'PDFTestReport','${PARAM_TEST_RESULTS_PDF} ');\
You can’t perform that action at this time.
0 commit comments