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

Commit d462f53

Browse files
author
Nikhil Bhoski
committed
change tap variable in runMatlabTest file
1 parent 3e20d0e commit d462f53

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/main/java/com/mathworks/ci/RunMatlabTestsBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public void addFilePathArgTo(Map<String, String> inputArgs) {
351351
}
352352

353353
@Override
354-
public boolean getDefault() {
354+
public boolean getSelected() {
355355
return false;
356356
}
357357

@@ -370,7 +370,7 @@ protected AbstractArtifactImpl(String path) {
370370
this.filePath = path;
371371
}
372372

373-
public boolean getDefault() {
373+
public boolean getSelected() {
374374
return true;
375375
}
376376

@@ -389,6 +389,6 @@ public interface Artifact {
389389

390390
public String getFilePath();
391391

392-
public boolean getDefault();
392+
public boolean getSelected();
393393
}
394394
}

src/main/resources/com/mathworks/ci/RunMatlabTestsBuilder/config.jelly

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
33

44
<f:section title="Generate Test Artifacts">
5-
<f:optionalBlock name="pdfReportArtifact" field="pdfReportArtifact" title="PDF test report" checked="${instance.pdfReportArtifact.default}">
5+
<f:optionalBlock name="pdfReportArtifact" field="pdfReportArtifact" title="PDF test report" checked="${instance.pdfReportArtifact.selected}">
66
<f:entry field="pdfReportFilePath" title="File path: ">
77
<f:textbox default="matlabTestArtifacts/testreport.pdf"/>
88
</f:entry>
99
</f:optionalBlock>
1010

11-
<f:optionalBlock name="tapArtifact" field="tapArtifact" title="TAP test results" checked="${instance.tapArtifact.default}">
11+
<f:optionalBlock name="tapArtifact" field="tapArtifact" title="TAP test results" checked="${instance.tapArtifact.selected}">
1212
<f:entry field="tapReportFilePath" title="File path: ">
1313
<f:textbox default="matlabTestArtifacts/taptestresults.tap"/>
1414
</f:entry>
1515
</f:optionalBlock>
1616

17-
<f:optionalBlock name="junitArtifact" field="junitArtifact" title="JUnit-style test results" checked="${instance.junitArtifact.default}">
17+
<f:optionalBlock name="junitArtifact" field="junitArtifact" title="JUnit-style test results" checked="${instance.junitArtifact.selected}">
1818
<f:entry field="junitReportFilePath" title="File path: ">
1919
<f:textbox default="matlabTestArtifacts/junittestresults.xml"/>
2020
</f:entry>
2121
</f:optionalBlock>
2222

23-
<f:optionalBlock name="stmResultsArtifact" field="stmResultsArtifact" title="Simulink Test Manager results" checked="${instance.stmResultsArtifact.default}">
23+
<f:optionalBlock name="stmResultsArtifact" field="stmResultsArtifact" title="Simulink Test Manager results" checked="${instance.stmResultsArtifact.selected}">
2424
<f:entry field="stmResultsFilePath" title="File path: ">
2525
<f:textbox default="matlabTestArtifacts/simulinktestresults.mldatx"/>
2626
</f:entry>
@@ -29,13 +29,13 @@
2929
</f:section>
3030

3131
<f:section title="Generate Coverage Artifacts">
32-
<f:optionalBlock name="coberturaArtifact" field="coberturaArtifact" title="Cobertura code coverage" checked="${instance.coberturaArtifact.default}">
32+
<f:optionalBlock name="coberturaArtifact" field="coberturaArtifact" title="Cobertura code coverage" checked="${instance.coberturaArtifact.selected}">
3333
<f:entry field="coberturaReportFilePath" title="File path: ">
3434
<f:textbox default="matlabTestArtifacts/cobertura.xml"/>
3535
</f:entry>
3636
</f:optionalBlock>
3737

38-
<f:optionalBlock name="modelCoverageArtifact" field="modelCoverageArtifact" title="Cobertura model coverage" checked="${instance.modelCoverageArtifact.default}">
38+
<f:optionalBlock name="modelCoverageArtifact" field="modelCoverageArtifact" title="Cobertura model coverage" checked="${instance.modelCoverageArtifact.selected}">
3939
<f:entry field="modelCoverageFilePath" title="File path: ">
4040
<f:textbox default="matlabTestArtifacts/modelcoverage.xml"/>
4141
</f:entry>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ function preparePath(path)
139139
mkdir(dir);
140140
end
141141

142-
function tapToFile = getTapResultFile(resultsDir)
142+
function tapFile = getTapResultFile(resultsDir)
143143
import('matlab.unittest.plugins.ToFile');
144144
preparePath(resultsDir);
145145
fclose(fopen(resultsDir,'w'));
146-
tapToFile = matlab.unittest.plugins.ToFile(resultsDir);
146+
tapFile = matlab.unittest.plugins.ToFile(resultsDir);
147147

148148
function suite = getTestSuite()
149149
import('matlab.unittest.TestSuite');

0 commit comments

Comments
 (0)