File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 29
29
% https://www.mathworks.com/help/matlab/matlab_env/index-of-code-analyzer-checks.html
30
30
featureName = string(com .mathworks .product .util .ProductIdentifier .get(name ).getFlexName()); % #ok<JAPIMATHWORKS>
31
31
32
- ok = license(' checkout' , featureName );
32
+ if license(' test' , featureName )
33
+ ok = license(' checkout' , featureName );
34
+ end
33
35
34
36
end
Original file line number Diff line number Diff line change 64
64
Tag = " java_exe" , Dependencies= " exe" , Strict= true );
65
65
66
66
coverageReport = fullfile(reportDir , ' coverage-report.html' );
67
- if isempty(license(' inuse' , ' MATLAB_Test' ))
68
- cvg = coverageReport ;
69
- else
67
+ mt_name = ' MATLAB_Test' ;
68
+ if license(' test' , mt_name ) && ~isempty(license(' inuse' , mt_name ))
70
69
cvg = @() matlabtest .plugins .codecoverage .StandaloneReport(coverageReport );
70
+ else
71
+ cvg = coverageReport ;
71
72
end
72
73
73
74
plan(" coverage" ) = matlab .buildtool .tasks .TestTask(test_root , ...
You can’t perform that action at this time.
0 commit comments