Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 49a221e

Browse files
authored
Merge pull request #66 from mathworks/add-empty-plugin-fix
Fix empty plugin bug
2 parents 323d237 + 8470207 commit 49a221e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/resources/com/mathworks/ci/MatlabBuilder/runMatlabTests.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,18 @@
5454
BASE_VERSION_TAP13_SUPPORT = '9.1';
5555
if verLessThan('matlab',BASE_VERSION_TAPORIGINALFORMAT_SUPPORT)
5656
warning('MATLAB:testArtifact:tapReportNotSupported', 'Producing TAP results is not supported in this release.');
57-
tapPlugin = matlab.unittest.plugins.TestRunnerPlugin.empty;
5857
elseif verLessThan('matlab',BASE_VERSION_TAP13_SUPPORT)
5958
tapFile = getTapResultFile(resultsDir);
6059
import('matlab.unittest.plugins.TAPPlugin');
6160
tapPlugin = TAPPlugin.producingOriginalFormat(tapFile);
61+
runner.addPlugin(tapPlugin);
6262
else
6363
tapFile = getTapResultFile(resultsDir);
6464
import('matlab.unittest.plugins.TAPPlugin');
6565
tapPlugin = TAPPlugin.producingVersion13(tapFile);
66+
runner.addPlugin(tapPlugin);
6667
end
67-
runner.addPlugin(tapPlugin);
68+
6869
end
6970

7071
% Produce Cobertura report (Cobertura report generation is not supported

0 commit comments

Comments
 (0)