Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ jobs:
- matlab/run-tests:
select-by-folder: simtests
model-coverage-cobertura: model-coverage/coverage.xml
model-coverage-html: model-coverage/html
test-results-pdf: test-results/matlab/pdfresults.pdf
test-results-simulink-test: test-results/matlab/simulinkTest.mldatx
- run:
Expand All @@ -246,6 +247,12 @@ jobs:
set -e
grep -q simple_model model-coverage/coverage.xml
shell: bash
- run:
name: Verify HTML model coverage report was created
command: |
set -e
grep -r "simple_model Coverage Report" --include="*.html" model-coverage/html
shell: bash

workflows:
test-deploy:
Expand Down
6 changes: 6 additions & 0 deletions src/commands/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ parameters:
Path to write model coverage report in Cobertura XML format.
type: string
default: ''
model-coverage-html:
description: >
Path to write model coverage report in HTML format.
type: string
default: ''
test-results-simulink-test:
description: >
Path to export Simulink Test Manager results in MLDATX format.
Expand Down Expand Up @@ -73,6 +78,7 @@ steps:
PARAM_SELECT_BY_FOLDER: <<parameters.select-by-folder>>
PARAM_SELECT_BY_TAG: <<parameters.select-by-tag>>
PARAM_MODEL_COVERAGE_COBERTURA: <<parameters.model-coverage-cobertura>>
PARAM_MODEL_COVERAGE_HTML: <<parameters.model-coverage-html>>
PARAM_TEST_RESULTS_SIMULINK_TEST: <<parameters.test-results-simulink-test>>
PARAM_TEST_RESULTS_HTML: <<parameters.test-results-html>>
PARAM_TEST_RESULTS_PDF: <<parameters.test-results-pdf>>
Expand Down
1 change: 1 addition & 0 deletions src/scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ fi
'SelectByFolder','${PARAM_SELECT_BY_FOLDER}',\
'SelectByTag','$PARAM_SELECT_BY_TAG',\
'CoberturaModelCoverage','${PARAM_MODEL_COVERAGE_COBERTURA}',\
'HTMLModelCoverage','${PARAM_MODEL_COVERAGE_HTML}',\
'SimulinkTestResults','${PARAM_TEST_RESULTS_SIMULINK_TEST}',\
'HTMLTestReport','${PARAM_TEST_RESULTS_HTML}',\
'PDFTestReport','${PARAM_TEST_RESULTS_PDF}');\
Expand Down