From 84702070c4b5e0d2b89adf3d4ec30b9ed2f8f135 Mon Sep 17 00:00:00 2001 From: Andy Campbell <47190204+acampbel@users.noreply.github.com> Date: Mon, 13 Jan 2020 09:06:05 -0500 Subject: [PATCH] Fix empty plugin bug Note: Need access to matlab in CI of this project to test this file in automation. This will instead be addressed by scriptgen infrastructure. --- .../com/mathworks/ci/MatlabBuilder/runMatlabTests.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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