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

Commit 06e5262

Browse files
committed
Updated README.md & help content
1 parent 455da79 commit 06e5262

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# Jenkins MATLAB Plugin
22

3-
The Jenkins plugin for MATLAB® enables you to easily run your MATLAB and Simulink® tests and generate artifacts such as *JUnit* and *TAP* test results, and *Cobertura* code or model coverage reports. You can also export your Simulink Test™ Manager results. This guide shows you examples of how to configure the plugin for different objectives, considering a Microsoft® Windows® platform.
3+
The Jenkins plugin for MATLAB® enables you to easily run your MATLAB and Simulink® tests and generate artifacts such as *PDF* test report, *JUnit* and *TAP* test results, and *Cobertura* code or model coverage reports. You can also export your Simulink Test™ Manager results. This guide shows you examples of how to configure the plugin for different objectives, considering a Microsoft® Windows® platform.
4+
5+
*Note: Producing a PDF test report is not supported on Mac OS platform.*
46

57
## Configure Plugin for Freestyle Project
68
To configure the plugin for a freestyle project, select **Run MATLAB Tests** from the **Add build step** list. Then, enter the value returned by the **matlabroot** function in the **MATLAB root** field.
79

810
![new_add_build_step](https://user-images.githubusercontent.com/47204011/55624172-be54a100-57c2-11e9-9596-52d3a60ee467.png)
911

10-
![new_enter_matlabroot](https://user-images.githubusercontent.com/51316279/70772996-28830400-1d9c-11ea-92d1-db9f054c304c.png)
12+
![new_enter_matlabroot](https://user-images.githubusercontent.com/51316279/67834674-085df500-fb0e-11e9-927b-c4da6bff0ed6.png)
1113

1214
### Option 1: Freestyle Project with Automatic Test Mode
1315
With the Jenkins plugin for MATLAB, you have the option to run your tests in either *automatic* or *custom* mode. The automatic test mode employs a default setting to run tests written using the MATLAB Unit Testing Framework and/or Simulink Test. If your source code is organized as files and folders within a project, the plugin will consider any test files in the project that have been tagged as **Test**. If your code does not leverage a project or uses a MATLAB version prior to R2019a, the plugin will consider all tests in the current Jenkins workspace including the subfolders.
@@ -18,17 +20,17 @@ The automatic test execution feature of the plugin enables you to generate diffe
1820

1921
1) From the **Test mode** drop-down list, select the **Automatic** option (**Automatic** is the default testing mode).
2022

21-
![new_select_automatic_option](https://user-images.githubusercontent.com/51316279/70773784-6719be00-1d9e-11ea-9a6c-7b277d63e10a.png)
23+
![new_select_automatic_option](https://user-images.githubusercontent.com/51316279/67842305-e7060480-fb1f-11e9-8f20-d2299636be02.png)
2224

2325
2) Select your desired test artifacts.
2426

25-
![new_select_all_test_artifacts](https://user-images.githubusercontent.com/51316279/70773293-0dfd5a80-1d9d-11ea-8d24-28407e67c8a5.png)
27+
![new_select_all_test_artifacts](https://user-images.githubusercontent.com/51316279/67841415-056b0080-fb1e-11e9-928f-8285b7f2fc71.png)
2628

2729
The selected artifacts will be saved in the **matlabTestArtifacts** folder of the Jenkins workspace.
2830

2931
![Workspace01](https://user-images.githubusercontent.com/47204011/55470859-1e621080-5626-11e9-98f2-044144272643.JPG)
3032

31-
![Test_artifacts](https://user-images.githubusercontent.com/51316279/70776181-5bc89180-1da2-11ea-92e6-4c71deab7199.png)
33+
![Test_artifacts](https://user-images.githubusercontent.com/51316279/67843000-33057900-fb21-11e9-9ce2-870ecf5ffdd0.png)
3234

3335
If you do not select any of the test artifact check boxes, the **matlabTestArtifacts** folder will not be created in the workspace. However, tests will still run and potential test failures will fail the build.
3436

@@ -41,7 +43,7 @@ This option enables you to develop your custom MATLAB commands for running tests
4143

4244
1) From the **Test mode** drop-down list, select the **Custom** option.
4345

44-
![new_select_custom](https://user-images.githubusercontent.com/51316279/70775386-42731580-1da1-11ea-9523-41c83443ee5b.png)
46+
![new_select_custom](https://user-images.githubusercontent.com/51316279/67842071-79f26f00-fb1f-11e9-8d46-274ffa941cfd.png)
4547

4648
2) Enter your commands in the **MATLAB command** field. If you specify more than one MATLAB command, use a comma or semicolon to separate the commands. The build will fail if the execution of any command results in an error.
4749

@@ -64,11 +66,11 @@ To configure the plugin for a matrix build where tests run automatically in mult
6466

6567
1) Add a user-defined axis in the **Configuration Matrix** to represent the MATLAB versions in the build. Specify the name of the axis in the **Name** field and its values in the **Values** field. Separate the elements in the **Values** field with a space. In this example, four MATLAB versions are specified, which will be used to run the same set of tests.
6668

67-
![image](https://user-images.githubusercontent.com/47204011/62603081-c2c8cc00-b912-11e9-83a4-c5462f58f607.png)
69+
![image](https://user-images.githubusercontent.com/51316279/71342155-f59df480-2581-11ea-82da-1fdaa20c451e.png)
6870

6971
2) In the **Run MATLAB Tests** section of the project, include the user-defined axis name in the **MATLAB root** field to specify the locations where MATLAB is installed. In this example, **$VERSION** will be replaced by one axis value per build step.
7072

71-
![image](https://user-images.githubusercontent.com/51316279/70773424-72b8b500-1d9d-11ea-97ca-807ecd6c4e47.png)
73+
![image](https://user-images.githubusercontent.com/51316279/67841685-a659bb80-fb1e-11e9-802a-3b357933f9c7.png)
7274

7375
You can select the test artifact check boxes when tests run automatically. Once you have made your selections, save your settings and run the build.
7476

@@ -78,19 +80,19 @@ To configure the matrix build where you can customize the MATLAB test execution,
7880

7981
1) Add a user-defined axis in the **Configuration Matrix** to represent the MATLAB versions in the build.
8082

81-
![image](https://user-images.githubusercontent.com/47204011/62603081-c2c8cc00-b912-11e9-83a4-c5462f58f607.png)
83+
![image](https://user-images.githubusercontent.com/51316279/71342155-f59df480-2581-11ea-82da-1fdaa20c451e.png)
8284

8385
2) Add another user-defined axis using the **Add axis** button. In this example, the **TEST_TAG** axis specifies the possible test tags for a group of test elements.
8486

85-
![image](https://user-images.githubusercontent.com/47204011/62517774-b6c30880-b845-11e9-86a0-8344a281fb27.png)
87+
![image](https://user-images.githubusercontent.com/51316279/71342366-8bd21a80-2582-11ea-959c-e024a340bec4.png)
8688

8789
3) In the **Run MATLAB Tests** section of the project, use the **VERSION** axis to specify the locations where MATLAB is installed.
8890

89-
![image](https://user-images.githubusercontent.com/51316279/70773424-72b8b500-1d9d-11ea-97ca-807ecd6c4e47.png)
91+
![image](https://user-images.githubusercontent.com/51316279/67841685-a659bb80-fb1e-11e9-802a-3b357933f9c7.png)
9092

9193
4) From the **Test mode** drop-down list, select the **Custom** option. Use the second user-defined axis to create your commands and enter them in the **MATLAB command** field. Then, save your settings and run the build.
9294

93-
![image](https://user-images.githubusercontent.com/47204011/62686681-cd529680-b9e2-11e9-82c1-c211f1740be4.png)
95+
![image](https://user-images.githubusercontent.com/51316279/71342534-1286f780-2583-11ea-8e54-4fc2addc1098.png)
9496

9597
**Notes:**
9698
1) For a user-defined axis named **VAR**, **$VAR** and **${VAR}** are both valid formats for accessing the values.

src/main/resources/com/mathworks/ci/MatlabBuilder/RunTestsAutomaticallyOption/help-taPDFReportChkBx.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
Consider copying the report to a location outside the workspace and opening it from there. For more information,
77
see <a href="http://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy">Configuring Jenkins Content Security Policy</a>.
88
<br><br>
9-
<i><b>*This feature is not supported on Mac OS platform.</b></i>
9+
<b>Note:This feature is not supported on Mac OS platform.</b>
1010
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
end
112112
end
113113

114-
% Produce PDF test report (Not supported on MAC platform and below R2017a)
114+
% Produce PDF test report (Not supported on Mac OS platform and below R2017a)
115115
if producePDFReport
116116
if ismac
117117
warning('MATLAB:testArtifact:unSupportedPlatform', ...

0 commit comments

Comments
 (0)