Skip to content

Commit 1c7b4b5

Browse files
committed
Updated docs on how to run a list of flows
1 parent 3a2d0e3 commit 1c7b4b5

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea/
2+

cli/test-suites-and-reports.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
### Running multiple tests
44

5-
Maestro can run a suite of tests and generate a test report at the end.
5+
#### Using a folder
6+
7+
Maestro can run a suite of tests that live in a folder and generate a test report at the end.
68

79
To run a suite, point `maestro test` to a folder that contains the Flows
810

@@ -12,6 +14,18 @@ maestro test myFolderWithTests/
1214

1315
Maestro will run every flow from the directory _excluding subfolders_. The command will complete successfully if and only if all the Flows have been completed successfully.
1416

17+
#### Using a list of flows
18+
19+
Maestro can run a list of tests and generate a test report at the end.
20+
21+
To run a list of tests, pass to `maestro test` the Flows paths to the Flows you want to run separated by spaces:
22+
23+
```
24+
maestro test "myFolderWithTests/test1.yaml myFolderWithTests/test2.yaml"
25+
```
26+
27+
Maestro will run the flow for each file provided. The command will complete successfully if and only if all the Flows have been completed successfully.
28+
1529
### Generating reports
1630

1731
To generate a report, add a `--format` parameter to a `test` command:
@@ -95,10 +109,10 @@ To run your Flows in a given order, you can add the following configuration to y
95109
```yaml
96110
# config.yaml
97111
executionOrder:
98-
continueOnFailure: false # default is true
99-
flowsOrder:
100-
- flowA
101-
- flowB
112+
continueOnFailure: false # default is true
113+
flowsOrder:
114+
- flowA
115+
- flowB
102116
```
103117

104118
This configuration describes to Maestro the order of the Flows you want to run. The list accepts either the Flow file names (without the `.yaml` extension) or the [Flow name](https://maestro.mobile.dev/api-reference/configuration/flow-configuration).

0 commit comments

Comments
 (0)