Skip to content

Commit 98e961d

Browse files
committed
format
1 parent 9ba867f commit 98e961d

2 files changed

Lines changed: 5 additions & 15 deletions

File tree

.github/workflows/bat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
uses: matlab-actions/setup-matlab@v2
3737
with:
3838
products: |
39+
MATLAB_Test
3940
Simulink
4041
Simulink_Test
4142
Simulink_Coverage

plugins/+matlab/+unittest/+internal/+services/+plugins/CodeCoverageSummaryPluginService.m

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,10 @@
44
methods
55
function plugins = providePlugins(~, ~)
66

7-
disp("matlab_test");
8-
disp(ver('matlab_test'));
9-
disp("MATLAB_Test");
10-
disp(ver('MATLAB_Test'));
11-
hasTestInstalled = false;
12-
installedProducts = ver;
13-
for i = 1:length(installedProducts)
14-
if strcmp(installedProducts(i).Name, 'MATLAB Test')
15-
hasTestInstalled = true;
16-
break;
17-
end
18-
end
19-
% Check if matlab_test toolbox is installed and MATLAB Test license is available
20-
if hasTestInstalled && license('test', 'matlab_test')
21-
disp("I am here");
7+
v = ver;
8+
% Check if MATLAB Test license is available and MATLAB Test toolbox is installed
9+
if license('test', 'matlab_test') && any(strcmp({v.Name}, 'MATLAB Test'))
10+
2211
% Get metric level from environment variable
2312
metricLevel = getenv('INPUT_CODE_COVERAGE_METRIC_LEVEL');
2413

0 commit comments

Comments
 (0)