You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Code Coverage, Model Coverage and Test results report for HTML (#149)
* build
* remove comment
* html code coverage
* html model coverage and html test report
* update task.json
* test code coverage html in template.yml
* test commit
* add folder for code cov html
* fix cod cov html
* fix code coverage html
* update code coverage html
* comment added
* remove comment
* test results html
* skip version 0
* fix test results html
* remove TestRunner.withTextOutput
* model coverage HTML
* add condition in model coverage HTML
* upload artifacts
* verify html file creation and remove upload artifact
* remove file verification in model coverage and upload artifacts
* fix upload results
* fix artifacts
* artifacts
* model coverage html verification
* final fix model coverage
* remove model coverage file verification
* ls the files
* add model cov verif
* remove ls
* refactoring
* change report to results
* fix namings
* remove tab space
* Fix path namings
* add File path
* Add table entries for HTML test and coverage artifacts
* Remove extra trademark symbol
---------
Co-authored-by: tagupta <[email protected]>
Copy file name to clipboardExpand all lines: overview.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -233,11 +233,14 @@ Input | Description
233
233
`useParallel` | <p>(Optional) Option to run tests in parallel, specified as `false` or `true`. By default, the value is `false` and tests run in serial. If the test runner configuration is suited for parallelization, you can specify a value of `true` to run tests in parallel. This input requires a Parallel Computing Toolbox license.</p><p>**Example:** `useParallel: true`</p>
234
234
`outputDetail` | <p>(Optional) Amount of event detail displayed for the test run, specified as `none`, `terse`, `concise`, `detailed`, or `verbose`. By default, the task displays failing and logged events at the `detailed` level and test run progress at the `concise` level.<p></p>**Example:** `outputDetail: verbose`</p>
235
235
`loggingLevel` | <p>(Optional) Maximum verbosity level for logged diagnostics included for the test run, specified as `none`, `terse`, `concise`, `detailed`, or `verbose`. By default, the task includes diagnostics logged at the `terse` level.<p></p>**Example:** `loggingLevel: detailed`</p>
236
-
`testResultsPDF` | <p>(Optional) Location to write the test results in PDF format, specified as a path relative to the project root folder. On macOS platforms, this input is supported in MATLAB R2020b and later.</p><p>**Example:** `testResultsPDF: test-results/results.pdf`</p>
237
-
`testResultsJUnit` | <p>(Optional) Location to write the test results in JUnit-style XML format, specified as a path relative to the project root folder.</p><p>**Example:** `testResultsJUnit: test-results/results.xml`</p>
238
-
`testResultsSimulinkTest` | <p>(Optional) Location to export Simulink Test Manager results in MLDATX format, specified as a path relative to the project root folder. This input requires a Simulink Test license and is supported in MATLAB R2019a and later.</p><p>**Example:** `testResultsSimulinkTest: test-results/results.mldatx`</p>
239
-
`codeCoverageCobertura` | <p>(Optional) Location to write the code coverage results in Cobertura XML format, specified as a path relative to the project root folder.</p><p>**Example:** `codeCoverageCobertura: code-coverage/coverage.xml`</p>
240
-
`modelCoverageCobertura` | <p>(Optional) Location to write the model coverage results in Cobertura XML format, specified as a path relative to the project root folder. This input requires a Simulink Coverage™ license and is supported in MATLAB R2018b and later.</p><p>**Example:** `modelCoverageCobertura: model-coverage/coverage.xml`</p>
236
+
`testResultsHTML` | <p>(Optional) Location to write the test results in HTML format, specified as a folder path relative to the project root folder.</p><p>**Example:** `testResultsHTML: test-results`</p>
237
+
`testResultsPDF` | <p>(Optional) Location to write the test results in PDF format, specified as a file path relative to the project root folder. On macOS platforms, this input is supported in MATLAB R2020b and later.</p><p>**Example:** `testResultsPDF: test-results/results.pdf`</p>
238
+
`testResultsJUnit` | <p>(Optional) Location to write the test results in JUnit-style XML format, specified as a file path relative to the project root folder.</p><p>**Example:** `testResultsJUnit: test-results/results.xml`</p>
239
+
`testResultsSimulinkTest` | <p>(Optional) Location to export Simulink Test Manager results in MLDATX format, specified as a file path relative to the project root folder. This input requires a Simulink Test license and is supported in MATLAB R2019a and later.</p><p>**Example:** `testResultsSimulinkTest: test-results/results.mldatx`</p>
240
+
`codeCoverageHTML` | <p>(Optional) Location to write the code coverage results in HTML format, specified as a folder path relative to the project root folder.</p><p>**Example:** `codeCoverageHTML: code-coverage`</p>
241
+
`codeCoverageCobertura` | <p>(Optional) Location to write the code coverage results in Cobertura XML format, specified as a file path relative to the project root folder.</p><p>**Example:** `codeCoverageCobertura: code-coverage/coverage.xml`</p>
242
+
`modelCoverageHTML` | <p>(Optional) Location to write the model coverage results in HTML format, specified as a folder path relative to the project root folder. This input requires a Simulink Coverage™ license and is supported in MATLAB R2018b and later.</p><p>**Example:** `modelCoverageHTML: model-coverage`</p>
243
+
`modelCoverageCobertura` | <p>(Optional) Location to write the model coverage results in Cobertura XML format, specified as a file path relative to the project root folder. This input requires a Simulink Coverage license and is supported in MATLAB R2018b and later.</p><p>**Example:** `modelCoverageCobertura: model-coverage/coverage.xml`</p>
241
244
`startupOptions` | <p>(Optional) MATLAB startup options, specified as a list of options separated by spaces. For more information about startup options, see [Commonly Used Startup Options](https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html).</p><p>Using this input to specify the `-batch` or `-r` option is not supported.</p><p>**Example:** `startupOptions: -nojvm`<br/>**Example:** `startupOptions: -nojvm -logfile output.log`</p>
242
245
243
246
>**Note:** To customize the pretest state of the system, you can specify startup code that automatically executes before your tests run. For information on how to specify startup or shutdown files in a MATLAB project, see [Automate Startup and Shutdown Tasks](https://www.mathworks.com/help/matlab/matlab_prog/automate-startup-and-shutdown-tasks.html). If your pipeline does not use a MATLAB project, specify the commands you want executed at startup in a `startup.m` file instead, and save the file to the root of your repository. See [`startup`](https://www.mathworks.com/help/matlab/ref/startup.html) for more information.
Copy file name to clipboardExpand all lines: tasks/run-matlab-tests/v1/task.json
+32-5Lines changed: 32 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,16 @@
100
100
"defaultValue": "",
101
101
"groupName": "testArtifacts",
102
102
"required": false,
103
-
"helpMarkDown": "Path to write the test results in PDF format (requires MATLAB R2020b or later on macOS platforms)."
103
+
"helpMarkDown": "File path to write the test results in PDF format (requires MATLAB R2020b or later on macOS platforms)."
104
+
},
105
+
{
106
+
"name": "testResultsHTML",
107
+
"type": "string",
108
+
"label": "HTML test report",
109
+
"defaultValue": "",
110
+
"groupName": "testArtifacts",
111
+
"required": false,
112
+
"helpMarkDown": "Folder path to write the test results in HTML format."
104
113
},
105
114
{
106
115
"name": "testResultsJUnit",
@@ -109,7 +118,7 @@
109
118
"defaultValue": "",
110
119
"groupName": "testArtifacts",
111
120
"required": false,
112
-
"helpMarkDown": "Path to write the test results in JUnit-style XML format."
121
+
"helpMarkDown": "File path to write the test results in JUnit-style XML format."
113
122
},
114
123
{
115
124
"name": "testResultsSimulinkTest",
@@ -118,7 +127,7 @@
118
127
"defaultValue": "",
119
128
"groupName": "testArtifacts",
120
129
"required": false,
121
-
"helpMarkDown": "Path to export Simulink Test Manager results in MLDATX format (requires Simulink Test and is supported in MATLAB R2019a or later)."
130
+
"helpMarkDown": "File path to export Simulink Test Manager results in MLDATX format (requires Simulink Test and is supported in MATLAB R2019a or later)."
122
131
},
123
132
{
124
133
"name": "codeCoverageCobertura",
@@ -127,7 +136,16 @@
127
136
"defaultValue": "",
128
137
"required": false,
129
138
"groupName": "coverageArtifacts",
130
-
"helpMarkDown": "Path to write the code coverage results in Cobertura XML format."
139
+
"helpMarkDown": "File path to write the code coverage results in Cobertura XML format."
140
+
},
141
+
{
142
+
"name": "codeCoverageHTML",
143
+
"type": "string",
144
+
"label": "HTML code coverage",
145
+
"defaultValue": "",
146
+
"required": false,
147
+
"groupName": "coverageArtifacts",
148
+
"helpMarkDown": "Folder path to write the code coverage results in HTML format."
131
149
},
132
150
{
133
151
"name": "modelCoverageCobertura",
@@ -136,7 +154,16 @@
136
154
"defaultValue": "",
137
155
"groupName": "coverageArtifacts",
138
156
"required": false,
139
-
"helpMarkDown": "Path to write the model coverage report in Cobertura XML format (requires Simulink Coverage and is supported in MATLAB R2018b or later)."
157
+
"helpMarkDown": "File path to write the model coverage report in Cobertura XML format (requires Simulink Coverage and is supported in MATLAB R2018b or later)."
158
+
},
159
+
{
160
+
"name": "modelCoverageHTML",
161
+
"type": "string",
162
+
"label": "HTML model coverage",
163
+
"defaultValue": "",
164
+
"groupName": "coverageArtifacts",
165
+
"required": false,
166
+
"helpMarkDown": "Folder path to write the model coverage results in HTML format (requires Simulink Coverage and is supported in MATLAB R2018b or later)."
0 commit comments