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 2929% https://www.mathworks.com/help/matlab/matlab_env/index-of-code-analyzer-checks.html
3030featureName = string(com .mathworks .product .util .ProductIdentifier .get(name ).getFlexName()); % #ok<JAPIMATHWORKS>
3131
32- ok = license(' checkout' , featureName );
32+ if license(' test' , featureName )
33+ ok = license(' checkout' , featureName );
34+ end
3335
3436end
Original file line number Diff line number Diff line change 6464 Tag = " java_exe" , Dependencies= " exe" , Strict= true );
6565
6666 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 ))
7069 cvg = @() matlabtest .plugins .codecoverage .StandaloneReport(coverageReport );
70+ else
71+ cvg = coverageReport ;
7172 end
7273
7374 plan(" coverage" ) = matlab .buildtool .tasks .TestTask(test_root , ...
You can’t perform that action at this time.
0 commit comments