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
1. Update the `runTest.sh` file to include the `--format junit` flag in the maestro test command:
161
+
162
+
```yaml
163
+
/home/ltuser/.maestro/bin/maestro test $1 --debug-output ./MaestroLogs --format junit
164
+
```
165
+
166
+
The above command will generate a `report.xml` file in the root directory after each test execution. Here is the complete reference of the `runTest.sh` file:
2. Update your HyperExecute YAML file to enable the native reporting in HyperExecute using the generated JUnit XML files.
173
+
174
+
```yaml title="hyperexecute.yaml"
175
+
report: true
176
+
partialReports:
177
+
- location: .
178
+
type: xml
179
+
frameworkName: junit
180
+
```
181
+
182
+
### 📘 Use Cases
183
+
#### Use Case 1: One Test per Task
184
+
If you're executing one test per task, a single `report.xml` will be generated per job. These individual reports can then be merged later for a consolidated result.
185
+
186
+
#### Use Case 2: Multiple Tests on the same Task
187
+
In this case, the `report.xml` file gets overwritten after each test execution. This results in only the last test's results being preserved. To prevent overwriting, update your `testRunnerCommand` in the `hyperexecute.yaml` file to rename the report after each test:
This ensures that each test result is saved with a unique name like test1.xml, test2.xml, etc.
194
+
195
+
## Step 6: Execute your Test Suite
160
196
> **NOTE :** In case of MacOS, if you get a permission denied warning while executing CLI, simply run **`chmod u+x ./hyperexecute`** to allow permission. In case you get a security popup, allow it from your **System Preferences** → **Security & Privacy** → **General tab**.
161
197
162
198
Run the below command in your terminal at the root folder of the project:
@@ -175,7 +211,7 @@ OR use this command if you have not exported your username and access key in the
0 commit comments