Skip to content

Commit f8ee996

Browse files
Document junitFormat
1 parent 2983fc1 commit f8ee996

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

docs/plugins/modelcheck.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,15 @@ Parameters:
6161
the build.
6262
* `junitFile` - allows storing the results of the model check as a JUnit XML file. By default, the file will contain one
6363
testcase for each model that was checked (s. `junitFormat`).
64-
* `junitFormat` - allows to change the format of the JUnit XML file, how the model checking errors will be reported. Possible options:
65-
* `model` (default) - generates one testcase for each model that was checked. If the model check reported any error for the model,
66-
the testcase will fail and the message of the model checking error will be reported.
67-
* `message` - generates one testcase for each model check error. For uniqueness reasons, the name of the testcase will reflect the specific
68-
model check error and the name of the test class will be constructed from the checked node ID and its containing root node.
69-
Full error message and the node URL will be reported in the testcase failure. Checked models will be mapped to test suites with this option.
64+
* `junitFormat` - specifies how errors are reported in the JUnit XML file. Possible options:
65+
* `model` (default, deprecated) - generates one test case for each model that was checked. If the model check reported
66+
any error for the model, the test case will contain a failure with the error message.
67+
* `module-and-model` (preferred) - generates one test case for each module and model that was checked. If the model
68+
check reported any error for the model or module, the test case will contain a failure with the error message.
69+
* `message` - generates one testcase for each model check error. For uniqueness reasons, the name of the testcase will
70+
reflect the specific model check error and the name of the test class will be constructed from the checked node ID
71+
and its containing root node. Full error message and the node URL will be reported in the testcase failure. Checked
72+
models will be mapped to test suites with this option.
7073
* `parallel` (since 1.20) - runs model checker in parallel mode. Supported in MPS 2021.3.4. Default is `false`.
7174
* `maxHeap` - maximum heap size setting for the JVM that executes the model checker. This is useful to limit the heap usage
7275
in scenarios like containerized build agents where the OS reported memory limit is not the maximum

docs/tasks/MpsCheck.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,15 @@ Parameters:
3737
* `varMacros` - non-path variables/macros that are necessary to open the project. Variable macros *are* considered part
3838
of Gradle build cache key.
3939
* `junitFile` - the JUnit XML file to produce. Defaults to `$buildDir/TEST-${task.name}.xml`
40-
* `junitFormat` - the format of the JUnit XML file. Defaults to `module-and-model`.
40+
* `junitFormat` - specifies how errors are reported in the JUnit XML file. Possible options:
41+
* `model` (default, deprecated) - generates one test case for each model that was checked. If the model check reported
42+
any error for the model, the test case will contain a failure with the error message.
43+
* `module-and-model` (preferred) - generates one test case for each module and model that was checked. If the model
44+
check reported any error for the model or module, the test case will contain a failure with the error message.
45+
* `message` - generates one testcase for each model check error. For uniqueness reasons, the name of the testcase will
46+
reflect the specific model check error and the name of the test class will be constructed from the checked node ID
47+
and its containing root node. Full error message and the node URL will be reported in the testcase failure. Checked
48+
models will be mapped to test suites with this option.
4149
* `parallel` (since 1.20) - runs model checker in parallel mode. Supported in MPS 2021.3.4. Default is `false`.
4250
* `mpsHome` - the home directory of the MPS distribution (or RCP) to use for testing.
4351
* `mpsVersion` - the MPS version, such as "2021.3". Autodetected by reading `$mpsHome/build.properties` by default.

0 commit comments

Comments
 (0)