File tree 3 files changed +14
-0
lines changed
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ jobs:
226
226
- matlab/run-tests :
227
227
select-by-folder : simtests
228
228
model-coverage-cobertura : model-coverage/coverage.xml
229
+ model-coverage-html : model-coverage/html
229
230
test-results-pdf : test-results/matlab/pdfresults.pdf
230
231
test-results-simulink-test : test-results/matlab/simulinkTest.mldatx
231
232
- run :
@@ -246,6 +247,12 @@ jobs:
246
247
set -e
247
248
grep -q simple_model model-coverage/coverage.xml
248
249
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
249
256
250
257
workflows :
251
258
test-deploy :
Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ parameters:
46
46
Path to write model coverage report in Cobertura XML format.
47
47
type : string
48
48
default : ' '
49
+ model-coverage-html :
50
+ description : >
51
+ Path to write model coverage report in HTML format.
52
+ type : string
53
+ default : ' '
49
54
test-results-simulink-test :
50
55
description : >
51
56
Path to export Simulink Test Manager results in MLDATX format.
73
78
PARAM_SELECT_BY_FOLDER : <<parameters.select-by-folder>>
74
79
PARAM_SELECT_BY_TAG : <<parameters.select-by-tag>>
75
80
PARAM_MODEL_COVERAGE_COBERTURA : <<parameters.model-coverage-cobertura>>
81
+ PARAM_MODEL_COVERAGE_HTML : <<parameters.model-coverage-html>>
76
82
PARAM_TEST_RESULTS_SIMULINK_TEST : <<parameters.test-results-simulink-test>>
77
83
PARAM_TEST_RESULTS_HTML : <<parameters.test-results-html>>
78
84
PARAM_TEST_RESULTS_PDF : <<parameters.test-results-pdf>>
Original file line number Diff line number Diff line change 26
26
'SelectByFolder','${PARAM_SELECT_BY_FOLDER} ',\
27
27
'SelectByTag','$PARAM_SELECT_BY_TAG ',\
28
28
'CoberturaModelCoverage','${PARAM_MODEL_COVERAGE_COBERTURA} ',\
29
+ 'HTMLModelCoverage','${PARAM_MODEL_COVERAGE_HTML} ',\
29
30
'SimulinkTestResults','${PARAM_TEST_RESULTS_SIMULINK_TEST} ',\
30
31
'HTMLTestReport','${PARAM_TEST_RESULTS_HTML} ',\
31
32
'PDFTestReport','${PARAM_TEST_RESULTS_PDF} ');\
You can’t perform that action at this time.
0 commit comments