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

Commit b6fdbf7

Browse files
committed
Update failing test
1 parent 004d7c9 commit b6fdbf7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/test/java/com/mathworks/ci/systemtests/RunMATLABTestsArtifactsIT.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,11 @@ public void verifyCustomFilenamesForArtifactsPipeline() throws Exception {
211211
" }\n" +
212212
" }\n" +
213213
"}";
214-
WorkflowRun build = getPipelineBuild(script);
214+
215+
WorkflowJob project = jenkins.createProject(WorkflowJob.class);
216+
project.setDefinition(new CpsFlowDefinition(script,true));
217+
WorkflowRun build = project.scheduleBuild2(0).get();
218+
215219
jenkins.assertBuildStatus(Result.SUCCESS,build);
216220
jenkins.assertLogContains("test-results/results.mldatx", build);
217221
jenkins.assertLogContains("model-coverage/coverage.xml", build);
@@ -223,7 +227,7 @@ public void verifyCustomFilenamesForArtifactsPipeline() throws Exception {
223227
}
224228

225229
@Test
226-
public void verifyCOverageReportDoesNotIncludeOtherSourceFolder() throws Exception {
230+
public void verifyCoverageReportDoesNotIncludeOtherSourceFolder() throws Exception {
227231
this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), Utilities.getMatlabRoot()));
228232
project.getBuildWrappersList().add(this.buildWrapper);
229233

0 commit comments

Comments
 (0)