diff --git a/src/main/resources/com/mathworks/ci/MatlabBuilder/runMatlabTests.m b/src/main/resources/com/mathworks/ci/MatlabBuilder/runMatlabTests.m index 73f26b84..6ff7bc0b 100644 --- a/src/main/resources/com/mathworks/ci/MatlabBuilder/runMatlabTests.m +++ b/src/main/resources/com/mathworks/ci/MatlabBuilder/runMatlabTests.m @@ -54,17 +54,18 @@ BASE_VERSION_TAP13_SUPPORT = '9.1'; if verLessThan('matlab',BASE_VERSION_TAPORIGINALFORMAT_SUPPORT) warning('MATLAB:testArtifact:tapReportNotSupported', 'Producing TAP results is not supported in this release.'); - tapPlugin = matlab.unittest.plugins.TestRunnerPlugin.empty; elseif verLessThan('matlab',BASE_VERSION_TAP13_SUPPORT) tapFile = getTapResultFile(resultsDir); import('matlab.unittest.plugins.TAPPlugin'); tapPlugin = TAPPlugin.producingOriginalFormat(tapFile); + runner.addPlugin(tapPlugin); else tapFile = getTapResultFile(resultsDir); import('matlab.unittest.plugins.TAPPlugin'); tapPlugin = TAPPlugin.producingVersion13(tapFile); + runner.addPlugin(tapPlugin); end - runner.addPlugin(tapPlugin); + end % Produce Cobertura report (Cobertura report generation is not supported