11package com .mathworks .ci ;
22
33/*
4- * Copyright 2019-2020 The MathWorks, Inc.
4+ * Copyright 2019-2024 The MathWorks, Inc.
55 */
66
77public class MatlabBuilderConstants {
@@ -11,43 +11,44 @@ public class MatlabBuilderConstants {
1111 public static final double BASE_MATLAB_VERSION_COBERTURA_SUPPORT = 9.3 ;
1212 public static final double BASE_MATLAB_VERSION_MODELCOVERAGE_SUPPORT = 9.5 ;
1313 public static final double BASE_MATLAB_VERSION_EXPORTSTMRESULTS_SUPPORT = 9.6 ;
14-
14+
1515 public static final String MATLAB_RUNNER_TARGET_FILE = "Builder.matlab.runner.target.file.name" ;
1616 public static final String MATLAB_TESTS_RUNNER_TARGET_FILE = "runMatlabTests.m" ;
1717 public static final String MATLAB_RUNNER_RESOURCE = "com/mathworks/ci/MatlabBuilder/runMatlabTests.m" ;
1818 public static final String AUTOMATIC_OPTION = "RunTestsAutomaticallyOption" ;
19-
20- // Input parameter names (Passed to runMatlabTests.m as name-value pair arguments)
19+
20+ // Input parameter names (Passed to runMatlabTests.m as name-value pair
21+ // arguments)
2122 public static final String PDF_REPORT = "'PDFReport'" ;
2223 public static final String TAP_RESULTS = "'TAPResults'" ;
2324 public static final String JUNIT_RESULTS = "'JUnitResults'" ;
2425 public static final String STM_RESULTS = "'SimulinkTestResults'" ;
2526 public static final String COBERTURA_CODE_COVERAGE = "'CoberturaCodeCoverage'" ;
2627 public static final String COBERTURA_MODEL_COVERAGE = "'CoberturaModelCoverage'" ;
27-
28- //Matlab Script generator package
28+
29+ // Matlab Script generator package
2930 public static final String MATLAB_SCRIPT_GENERATOR = "matlab-script-generator.zip" ;
30-
31- //Test runner file prefix
31+
32+ // Test runner file prefix
3233 public static final String MATLAB_TEST_RUNNER_FILE_PREFIX = "runner_" ;
33-
34- //Temporary MATLAB folder name in workspace
34+
35+ // Temporary MATLAB folder name in workspace
3536 public static final String TEMP_MATLAB_FOLDER_NAME = ".matlab" ;
3637
3738 // MATLAB default function/plugin paths
3839 public static final String DEFAULT_PLUGIN = "+ciplugins/+jenkins/getDefaultPlugins.m" ;
3940 public static final String BUILD_REPORT_PLUGIN = "+ciplugins/+jenkins/BuildReportPlugin.m" ;
4041 public static final String TASK_RUN_PROGRESS_PLUGIN = "+ciplugins/+jenkins/TaskRunProgressPlugin.m" ;
4142 public static final String BUILD_ARTIFACT = "buildArtifact" ;
42-
43+
4344 public static final String NEW_LINE = System .getProperty ("line.separator" );
4445
45- //MATLAB Runner Script
46+ // MATLAB Runner Script
4647 public static final String TEST_RUNNER_SCRIPT = String .join (NEW_LINE ,
47- "addpath('${TEMP_FOLDER}');" ,
48- "testScript = genscript(${PARAMS});" ,
49- "disp('Running MATLAB script with content:');" ,
50- "disp(testScript.Contents);" ,
51- "fprintf('___________________________________\\ n\\ n');" ,
52- "run(testScript);" );
48+ "addpath('${TEMP_FOLDER}');" ,
49+ "testScript = genscript(${PARAMS});" ,
50+ "disp('Running MATLAB script with content:');" ,
51+ "disp(testScript.Contents);" ,
52+ "fprintf('___________________________________\\ n\\ n');" ,
53+ "run(testScript);" );
5354}
0 commit comments