Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
c772106
test release issue
taguptamw Apr 9, 2026
6951246
test
taguptamw Apr 9, 2026
1eb82ce
check if installed
taguptamw Apr 9, 2026
0b9bd37
update bat.yml
taguptamw Apr 9, 2026
4f38b3f
fix
taguptamw Apr 9, 2026
e2a6fa3
display stmts
taguptamw Apr 9, 2026
c705d3a
fix
taguptamw Apr 9, 2026
c984a23
check installation
taguptamw Apr 9, 2026
9ba867f
remove the installation of MATLAB_Test
taguptamw Apr 9, 2026
98e961d
format
taguptamw Apr 9, 2026
a8638e7
test without MATLAB Test
taguptamw Apr 9, 2026
94be3c1
bat yml update
taguptamw Apr 9, 2026
00caa09
some nitpicks fixes
taguptamw Apr 10, 2026
e1ec558
update bat.yml with new job
taguptamw Apr 13, 2026
0529ad8
format
taguptamw Apr 13, 2026
f347c7d
format
taguptamw Apr 13, 2026
ff924e2
Merge branch 'main' into tarun/fixRelease
taguptamw Apr 13, 2026
3b5afe1
format
taguptamw Apr 13, 2026
154cc6f
format
taguptamw Apr 14, 2026
99e3dd0
update package.json
taguptamw Apr 14, 2026
51720b3
Merge branch 'main' of https://github.com/matlab-actions/run-tests in…
taguptamw Apr 14, 2026
279874d
Merge branch 'main' of https://github.com/matlab-actions/run-tests in…
taguptamw Apr 15, 2026
49939df
add metric-level with other options
taguptamw Apr 15, 2026
3b24926
statement metric level
taguptamw Apr 15, 2026
aff0d80
commit
taguptamw Apr 15, 2026
35e0026
add code-coverage-html
taguptamw Apr 15, 2026
e5b78b1
test
taguptamw Apr 15, 2026
c8af667
fix
taguptamw Apr 15, 2026
c212198
fix
taguptamw Apr 15, 2026
868a205
prettier write
taguptamw Apr 15, 2026
308a468
fix
taguptamw Apr 15, 2026
053015a
comment code-coverage-html
taguptamw Apr 15, 2026
b7bdc95
view in default value
taguptamw Apr 16, 2026
192a9b9
prettier fix
taguptamw Apr 16, 2026
89a241d
test
taguptamw Apr 16, 2026
dc0a7f5
bat.yml
taguptamw Apr 17, 2026
57ef067
bat.yml
taguptamw Apr 17, 2026
c3d234c
update bat.yml
taguptamw Apr 21, 2026
ae8ee9e
update bat.yml
taguptamw Apr 23, 2026
939216b
update bat.yml
taguptamw Apr 23, 2026
3d1af76
update bat.yml
taguptamw Apr 23, 2026
9facff2
test
taguptamw Apr 23, 2026
2902636
test
taguptamw Apr 23, 2026
2e9b141
Github step summary
taguptamw Apr 23, 2026
135bc66
update plugin
taguptamw Apr 23, 2026
65fd7bc
fix
taguptamw Apr 23, 2026
a02bfb9
fix
taguptamw Apr 23, 2026
c6a605e
fix
taguptamw Apr 23, 2026
c603fba
fix
taguptamw Apr 23, 2026
bad09e3
fix
taguptamw Apr 23, 2026
b536c8c
prettier
taguptamw Apr 23, 2026
e1e50b7
remove quotes
taguptamw Apr 23, 2026
1b4f3fe
remove quotes
taguptamw Apr 23, 2026
21714c7
update bat
taguptamw Apr 23, 2026
8b1bdfe
update
taguptamw Apr 24, 2026
2285c7b
update
taguptamw Apr 24, 2026
0b8f38a
update
taguptamw Apr 24, 2026
60968ca
remove source folder
taguptamw Apr 24, 2026
c88d9f0
test source folder pwd
taguptamw Apr 24, 2026
703ddff
fix
taguptamw Apr 24, 2026
85a9a92
add test file
taguptamw Apr 24, 2026
9ac1ce7
clean
taguptamw Apr 24, 2026
642d2b5
clean up
taguptamw Apr 24, 2026
214778a
clean
taguptamw Apr 24, 2026
5b7ce68
Merge branch 'main' of https://github.com/matlab-actions/run-tests in…
taguptamw Apr 24, 2026
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
33 changes: 29 additions & 4 deletions .github/workflows/bat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
with:
source-folder: sample
startup-options: -logfile output.log
code-coverage-metric-level: mcdc # new option to configure metric level
- name: Verify option application
run: |
set -e
Expand Down Expand Up @@ -104,8 +103,8 @@ jobs:
run: |
grep "::group::TheTruth" output.log
shell: bash
run-tests-without-matlabtest:
name: Run tests without MATLAB Test
run-tests-for-coverage-summary:
name: Test coverage summary view
needs: bat
runs-on: ubuntu-latest
steps:
Expand All @@ -114,7 +113,33 @@ jobs:
name: built-action
- name: Perform 'setup-matlab' without MATLAB Test
uses: matlab-actions/setup-matlab@v3
- name: Run MATLAB Tests
- name: Run MATLAB Tests without MATLAB Test # Test Case 1: Without MATLAB Test, no view is shown
uses: ./
with:
source-folder: sample
code-coverage-metric-level: mcdc
- name: Perform 'setup-matlab' with MATLAB Test
uses: matlab-actions/setup-matlab@v3
with:
products: |
MATLAB_Test
- name: Run MATLAB Tests with other options # Test Case 2: With MATLAB Test, and other code-coverage options, no view is shown.
uses: ./
with:
model-coverage-cobertura: test-results/modelcoverage.xml
test-results-pdf: test-results/pdf-results.pdf
test-results-junit: test-results/results.xml
code-coverage-cobertura: test-results/coverage.xml
code-coverage-html: test-results/coverageHTML
code-coverage-metric-level: mcdc
model-coverage-html: test-results/modelcoverageHTML
test-results-html: test-results/resultsHTML
select-by-folder: sample
strict: true
use-parallel: true
output-detail: Detailed
logging-level: Detailed
- name: Run MATLAB Tests # Test Case 3: With MATLAB Test, and only code-coverage-metric-level option, view is shown.
uses: ./
with:
source-folder: sample
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
productNames = string({verInfo.Name});
productName = 'MATLAB Test';
isProductInstalled = any(productNames.matches(productName));
hasCoverageHTML = ~isempty(getenv('INPUT_CODE_COVERAGE_HTML'));
hasCoverageCobertura = ~isempty(getenv('INPUT_CODE_COVERAGE_COBERTURA'));
hasCoverageRequest = hasCoverageHTML || hasCoverageCobertura;

% Check if MATLAB Test license is available and MATLAB Test is installed
if license('test', 'matlab_test') && isProductInstalled
if license('test', 'matlab_test') && isProductInstalled && ~hasCoverageRequest
% Get metric level from environment variable
metricLevel = getenv('INPUT_CODE_COVERAGE_METRIC_LEVEL');

Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ async function run() {
MW_BATCH_LICENSING_ONLINE: "true", // Remove when online batch licensing is the default
INPUT_CODE_COVERAGE_METRIC_LEVEL: codeCoverageMetricLevel,
INPUT_SOURCE_FOLDER: options.SourceFolder!, // Add source folder to environment
INPUT_CODE_COVERAGE_HTML: options.HTMLCodeCoverage!,
INPUT_CODE_COVERAGE_COBERTURA: options.CoberturaCodeCoverage!,
},
};
core.info("Successfully generated test script!");
Expand Down
Loading