Skip to content

Commit e025e14

Browse files
committed
fix merge conflicts
2 parents a3fa95b + 7cff677 commit e025e14

6 files changed

Lines changed: 124 additions & 84 deletions

File tree

.github/workflows/bat.yml

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ jobs:
127127
run: |
128128
grep "::group::TheTruth" output.log
129129
shell: bash
130-
run-tests-without-matlabtest:
131-
name: Run tests without MATLAB Test
130+
run-tests-for-coverage-summary:
131+
name: Test coverage summary view
132132
needs: bat
133133
runs-on: ubuntu-latest
134134
steps:
@@ -137,7 +137,33 @@ jobs:
137137
name: built-action
138138
- name: Perform 'setup-matlab' without MATLAB Test
139139
uses: matlab-actions/setup-matlab@v3
140-
- name: Run MATLAB Tests
140+
- name: Run MATLAB Tests without MATLAB Test # Test Case 1: Without MATLAB Test, no view is shown
141+
uses: ./
142+
with:
143+
source-folder: sample
144+
code-coverage-metric-level: mcdc
145+
- name: Perform 'setup-matlab' with MATLAB Test
146+
uses: matlab-actions/setup-matlab@v3
147+
with:
148+
products: |
149+
MATLAB_Test
150+
- name: Run MATLAB Tests with other options # Test Case 2: With MATLAB Test, and other code-coverage options, no view is shown.
151+
uses: ./
152+
with:
153+
model-coverage-cobertura: test-results/modelcoverage.xml
154+
test-results-pdf: test-results/pdf-results.pdf
155+
test-results-junit: test-results/results.xml
156+
code-coverage-cobertura: test-results/coverage.xml
157+
code-coverage-html: test-results/coverageHTML
158+
code-coverage-metric-level: mcdc
159+
model-coverage-html: test-results/modelcoverageHTML
160+
test-results-html: test-results/resultsHTML
161+
select-by-folder: sample
162+
strict: true
163+
use-parallel: true
164+
output-detail: Detailed
165+
logging-level: Detailed
166+
- name: Run MATLAB Tests # Test Case 3: With MATLAB Test, and only code-coverage-metric-level option, view is shown.
141167
uses: ./
142168
with:
143169
source-folder: sample

0 commit comments

Comments
 (0)