File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 6363 test_root , Description= " test Java exe targets" , ...
6464 Tag = " java_exe" , Dependencies= " exe" , Strict= true );
6565
66+ coverageReport = fullfile(reportDir , ' coverage-report.html' );
67+ if isempty(license(' inuse' , ' MATLAB_Test' ))
68+ cvg = coverageReport ;
69+ else
70+ cvg = @() matlabtest .plugins .codecoverage .StandaloneReport(coverageReport );
71+ end
6672
67- if ~isempty(license(' inuse' , ' MATLAB_Test' ))
68- plan(" coverage" ) = matlab .buildtool .tasks .TestTask(test_root , ...
73+ plan(" coverage" ) = matlab .buildtool .tasks .TestTask(test_root , ...
6974 Description= " Run code coverage" , ...
7075 Dependencies= " exe" , ...
7176 SourceFiles= pkg_root , ...
72- Strict= false ).addCodeCoverage(...
73- matlabtest .plugins .codecoverage .StandaloneReport(reportDir + " /coverage-report.html" ));
74- end
75-
77+ Strict= false ).addCodeCoverage(cvg());
7678end
7779
7880srcs = [" stdout_stderr_c.c" , " stdin_cpp.cpp" , " printenv.cpp" , " sleep.cpp" ];
You can’t perform that action at this time.
0 commit comments