Skip to content

Commit f381963

Browse files
committed
MQE-1626: bin/mftf run:manifest
- Add documentation
1 parent 037d8aa commit f381963

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docs/commands/mftf.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ vendor/bin/mftf run:test LoginAsAdminTest LoginAsCustomerTest -r
5858

5959
This command cleans up the previously generated tests; generates and runs the `LoginAsAdminTest` and `LoginAsCustomerTest` tests.
6060

61+
### Generate and run a testManifest.txt file
62+
63+
```bash
64+
vendor/bin/mftf run:manifest path/to/your/testManifest.txt
65+
```
66+
67+
This command runs all tests specified in a testManifest.txt file. When you generate tests, a testManifest.txt file is also generated for you. You can pass this file directly to the run:manifest command and it will execute all tests. Or you can create your own file of the same format to execute a subset of tests. Note: This command does not generate tests.
68+
6169
### Generate and run previously failed tests
6270

6371
```bash
@@ -338,6 +346,30 @@ Generate the `LoginCustomerTest` and `StorefrontCreateCustomerTest` tests from X
338346
vendor/bin/mftf run:test LoginCustomerTest StorefrontCreateCustomerTest
339347
```
340348

349+
### `run:manifest`
350+
351+
Runs a testManifest.txt file.
352+
353+
This command runs all tests specified in a testManifest.xml file. It does not generate tests for you. You must do that as first.
354+
355+
#### Usage
356+
357+
```bash
358+
vendor/bin/mftf run:manifest path/to/your/testManifest.txt
359+
```
360+
361+
#### Example testManifest.xml file
362+
363+
Each line should contain either: one test path or one group (-g) reference.
364+
365+
```
366+
tests/functional/tests/MFTF/_generated/default/AdminLoginTestCest.php
367+
-g PaypalTestSuite
368+
tests/functional/tests/MFTF/_generated/default/SomeOtherTestCest.php
369+
tests/functional/tests/MFTF/_generated/default/ThirdTestCest.php
370+
-g SomeOtherSuite
371+
```
372+
341373
### `run:failed`
342374

343375
Regenerates and reruns tests that previously failed.

0 commit comments

Comments
 (0)