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
| `--config=[<default>|<singleRun>|<parallel>]` | Creates a single manifest file with a list of all tests. The default location is `tests/functional/Magento/FunctionalTest/_generated/testManifest.txt`.<br/> You can split the list into multiple groups using `--config=parallel`; the groups will be generated in `_generated/groups/` like `_generated/groups/group1.txt, group2.txt, ...`.</br> Available values: `default` (default), `singleRun`(same as `default`), and `parallel`.</br> Example: `generate:tests --config=parallel`. |
121
-
|`--force`| Forces test generation, regardless of the module merge order defined in the Magento instance. Example: `generate:tests --force`.|
122
-
|`-i,--time`| Set time in minutes to determine the group size when `--config=parallel` is used. The __default value__ is `10`. Example: `generate:tests --config=parallel --time=15`|
123
-
|`--tests`| Defines the test configuration as a JSON string.|
124
-
|`--debug`| Returns additional debug information (such as the filename where an error occurred) when test generation fails because of an invalid XML schema. This parameter takes extra processing time. Use it after test generation has failed once.|
125
-
|`-r,--remove`| Removes the existing generated suites and tests cleaning up the `_generated` directory before the actual run. For example, `generate:tests SampleTest --remove` cleans up the entire `_generated` directory and generates `SampleTest` only.|
119
+
| Option | Description|
120
+
| ---|--- |
121
+
|`--config=[<default> or <singleRun> or <parallel>]`| Creates a single manifest file with a list of all tests. The default location is `tests/functional/Magento/FunctionalTest/_generated/testManifest.txt`.<br/> You can split the list into multiple groups using `--config=parallel`; the groups will be generated in `_generated/groups/` like `_generated/groups/group1.txt, group2.txt, ...`.</br> Available values: `default` (default), `singleRun`(same as `default`), and `parallel`.</br> Example: `generate:tests --config=parallel`. |
122
+
|`--force`| Forces test generation, regardless of the module merge order defined in the Magento instance. Example: `generate:tests --force`. |
123
+
|`-i,--time`| Set time in minutes to determine the group size when `--config=parallel` is used. The __default value__ is `10`. Example: `generate:tests --config=parallel --time=15`|
124
+
|`--tests`| Defines the test configuration as a JSON string.|
125
+
|`--debug`| Returns additional debug information (such as the filename where an error occurred) when test generation fails because of an invalid XML schema. This parameter takes extra processing time. Use it after test generation has failed once. |
126
+
|`-r,--remove`| Removes the existing generated suites and tests cleaning up the `_generated` directory before the actual run. For example, `generate:tests SampleTest --remove` cleans up the entire `_generated` directory and generates `SampleTest` only.|
126
127
127
128
#### Examples of the JSON configuration
128
129
@@ -131,7 +132,7 @@ The configuration to generate a single test with no suites:
131
132
```json
132
133
{
133
134
"tests":[
134
-
"general_test1"//Generate the "general_test1" test.
135
+
"general_test1"//Generate the "general_test1" test.
135
136
],
136
137
"suites": null
137
138
}
@@ -141,10 +142,10 @@ The configuration to generate a single test in the suite:
141
142
142
143
```json
143
144
{
144
-
"tests": null, // No tests outside the suite configuration will be generated.
145
+
"tests": null, // No tests outside the suite configuration will be generated.
145
146
"suites":{
146
-
"sample":[ // The suite that contains the test.
147
-
"suite_test1"// The test to be generated.
147
+
"sample":[ // The suite that contains the test.
148
+
"suite_test1"// The test to be generated.
148
149
]
149
150
}
150
151
}
@@ -159,11 +160,11 @@ Complex configuration to generate a few non-suite tests, a single test in a suit
159
160
"general_test2",
160
161
"general_test3"
161
162
],
162
-
"suites":{ //Go to suites.
163
-
"sample":[ //Go to the "sample" suite.
164
-
"suite_test1"//Generate the "suite_test1" test.
163
+
"suites":{ //Go to suites.
164
+
"sample":[ //Go to the "sample" suite.
165
+
"suite_test1"//Generate the "suite_test1" test.
165
166
],
166
-
"sample2":[] //Generate all tests in the "sample2" suite.
167
+
"sample2":[] //Generate all tests in the "sample2" suite.
|`-r,--remove`| Removes the existing generated suites and tests cleaning up the `_generated` directory before the actual run. For example, `vendor/bin/mftf generate:suite WYSIWYG --remove` cleans up the entire `_generated` directory and generates `WYSIWYG` only. |
0 commit comments