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
* Implement the double dash extra arguments feature
Also including the Unit Tests
* Fixing ouput message
* Improving parser logic
* Fixing lint errors
* Improving parser logic for subsequent --
* Fixing the README Notes
Copy file name to clipboardExpand all lines: README.md
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ Run `th-cli available-tests` to get a list of tests available in Test Harness, p
59
59
60
60
### run-tests
61
61
62
-
Run `th-cli run-tests --tests-list <tests> [--title, -n <title>] [--config, -c <config>] [--pics-config-folder, -p <pics-config-folder>] [--project-id <ID>] [--no-color]` to start a new test execution.
62
+
Run `th-cli run-tests --tests-list <tests> [--title, -n <title>] [--config, -c <config>] [--pics-config-folder, -p <pics-config-folder>] [--project-id <ID>] [--no-color] [-- <extra-sdk-args>]` to start a new test execution.
63
63
64
64
Required:
65
65
-`--tests-list`: Comma-separated list of test case identifiers (e.g. --tests-list TC-ACE-1.1,TC_ACE_1_3)
@@ -74,6 +74,7 @@ Optional:
74
74
-`--pics-config-folder`: Path to the folder that contains PICS files. If not specified, no PICS file will be used.
75
75
-`--project-id`: Project ID that this test run belongs to. If not provided, uses the default 'CLI Execution Project' in TH.
76
76
-`--no-color`: Disable all colors from the CLI's output text of this test run execution
77
+
-`-- <extra-sdk-args>`: Pass additional arguments directly to the SDK container Python tests. Use the double dash (`--`) separator followed by any SDK test arguments. These arguments will be added to every Python test execution in the run.
77
78
78
79
**Example config files:**
79
80
@@ -106,6 +107,36 @@ Full project format (works with all commands):
106
107
}
107
108
```
108
109
110
+
**Passing Extra Arguments to SDK Tests:**
111
+
112
+
You can pass additional arguments directly to the SDK container test execution using the `--` separator. Everything after `--` will be passed as-is to the Python test runner.
-`--timeout <seconds>` - Override default test timeout
133
+
-`--int-arg <name>:<value>` - Pass integer argument to test
134
+
-`--bool-arg <name>:<true|false>` - Pass boolean argument to test
135
+
-`--string-arg <name>:<value>` - Pass string argument to test
136
+
-`--hex-arg <name>:<hex-value>` - Pass hex value argument to test
137
+
138
+
**Note:** These extra arguments are applied to ALL Test Cases in the test run. Invalid arguments could cause test failures, so ensure the arguments are valid for the SDK test framework.
139
+
109
140
### test-run-execution-history
110
141
111
142
Run `th-cli test-run-execution-history` to fetch the history of test runs. Use `--skip` and `--limit` for pagination
0 commit comments