testzeus-cli 0.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,349 @@
1
+ Metadata-Version: 2.1
2
+ Name: testzeus-cli
3
+ Version: 0.0.2
4
+ Summary: Command-line interface for TestZeus testing platform
5
+ Home-page: https://github.com/test-zeus-ai/testzeus-cli
6
+ Author: Shriyansh Agnihotri
7
+ Author-email: shriyansh@testzeus.com
8
+ Requires-Python: >=3.11
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Requires-Dist: click (>=8.1.3,<9.0.0)
13
+ Requires-Dist: ipdb (>=0.13.13,<0.14.0)
14
+ Requires-Dist: keyring (>=24.0.0,<25.0.0)
15
+ Requires-Dist: pydantic (>=2.0.0,<3.0.0)
16
+ Requires-Dist: pyyaml (>=6.0,<7.0)
17
+ Requires-Dist: rich (>=13.3.1,<14.0.0)
18
+ Requires-Dist: testzeus-sdk (>=0.0.4,<0.0.5)
19
+ Project-URL: Repository, https://github.com/test-zeus-ai/testzeus-cli
20
+ Description-Content-Type: text/markdown
21
+
22
+ # TestZeus CLI
23
+
24
+ A powerful command-line interface for the TestZeus testing platform.
25
+
26
+ ## Installation
27
+
28
+ ```bash
29
+ pip install testzeus-cli
30
+ ```
31
+
32
+ ## Authentication
33
+
34
+ Before using the CLI, you need to authenticate with the TestZeus platform:
35
+
36
+ ```bash
37
+ testzeus login
38
+ ```
39
+
40
+ You will be prompted to enter your email and password. Your credentials are securely stored in your system's keyring.
41
+
42
+ ```bash
43
+ testzeus login --profile dev
44
+ ```
45
+
46
+ Authentication automatically detects and stores your tenant information, which will be used for all subsequent commands.
47
+
48
+ ### Auth Commands
49
+
50
+ | Command | Description |
51
+ |---------|-------------|
52
+ | `login` | Authenticate with TestZeus |
53
+ | `logout` | Log out and remove stored credentials |
54
+ | `whoami` | Display current authentication status |
55
+
56
+ ## Global Options
57
+
58
+ The following options can be used with any command:
59
+
60
+ | Option | Description |
61
+ |--------|-------------|
62
+ | `--profile` | Configuration profile to use (default: "default") |
63
+ | `--api-url` | Custom TestZeus API URL |
64
+ | `--verbose` | Enable verbose output |
65
+ | `--format` | Output format: json, table, or yaml (default: table) |
66
+
67
+ ## Managing Tests
68
+
69
+ ### List Tests
70
+
71
+ ```bash
72
+ testzeus tests list
73
+ ```
74
+
75
+ Filter test list with key-value pairs:
76
+ ```bash
77
+ testzeus tests list --filters status=draft
78
+ ```
79
+
80
+ Sort and expand related entities:
81
+ ```bash
82
+ testzeus tests list --sort created --expand tags,test_data
83
+ ```
84
+
85
+ ### Get Test Details
86
+
87
+ ```bash
88
+ testzeus tests get <test-id>
89
+ testzeus tests get <test-id> --expand tags,test_data
90
+ ```
91
+
92
+ ### Create Test
93
+
94
+ Create a test with text-based features:
95
+
96
+ ```bash
97
+ testzeus tests create --name "My Test" --feature "Feature: Test something"
98
+ ```
99
+
100
+ Create a test with features from a file:
101
+
102
+ ```bash
103
+ testzeus tests create --name "My Test" --feature-file ./features.txt
104
+ ```
105
+
106
+ Additional options:
107
+ ```bash
108
+ testzeus tests create --name "My Test" --feature-file ./features.txt --status ready --data data_id1 --data data_id2 --tags tag1 --tags tag2 --environment env_id
109
+ ```
110
+
111
+ ### Update Test
112
+
113
+ Update test name:
114
+
115
+ ```bash
116
+ testzeus tests update <test-id> --name "New Name"
117
+ ```
118
+
119
+ Update test features from text:
120
+
121
+ ```bash
122
+ testzeus tests update <test-id> --feature "Updated feature content"
123
+ ```
124
+
125
+ Update test features from a file:
126
+
127
+ ```bash
128
+ testzeus tests update <test-id> --feature-file ./updated_features.txt
129
+ ```
130
+
131
+ Update other properties:
132
+ ```bash
133
+ testzeus tests update <test-id> --status ready --data data_id1 --tags tag1 --environment env_id
134
+ ```
135
+
136
+ ### Solve Test
137
+
138
+ Generate a solution for a test:
139
+
140
+ ```bash
141
+ testzeus tests solve <test-id>
142
+ ```
143
+
144
+ Save the solution to a file:
145
+
146
+ ```bash
147
+ testzeus tests solve <test-id> --output-file ./solution.txt
148
+ ```
149
+
150
+ ### Delete Test
151
+
152
+ ```bash
153
+ testzeus tests delete <test-id>
154
+ ```
155
+
156
+ ## Test Runs
157
+
158
+ ### List Test Runs
159
+
160
+ ```bash
161
+ testzeus test-runs list
162
+ ```
163
+
164
+ Filter runs by status:
165
+
166
+ ```bash
167
+ testzeus test-runs list --filters status=running
168
+ ```
169
+
170
+ ### Get Test Run Details
171
+
172
+ ```bash
173
+ testzeus test-runs get <run-id>
174
+ ```
175
+
176
+ Get expanded details including all outputs and steps:
177
+
178
+ ```bash
179
+ testzeus test-runs get-expanded <run-id>
180
+ ```
181
+
182
+ ### Create and Start Test Run
183
+
184
+ ```bash
185
+ testzeus test-runs create --name "Run 1" --test <test-id>
186
+ ```
187
+
188
+ ### Cancel Test Run
189
+
190
+ ```bash
191
+ testzeus test-runs cancel <run-id>
192
+ ```
193
+
194
+ ### Watch Test Run Progress
195
+
196
+ ```bash
197
+ testzeus test-runs watch <run-id>
198
+ testzeus test-runs watch <run-id> --interval 10
199
+ ```
200
+
201
+ ### Download Test Run Attachments
202
+
203
+ ```bash
204
+ testzeus test-runs download-attachments <run-id>
205
+ testzeus test-runs download-attachments <run-id> --output-dir ./my-attachments
206
+ ```
207
+
208
+ ## Test Data
209
+
210
+ ### List Test Data
211
+
212
+ ```bash
213
+ testzeus test-data list
214
+ ```
215
+
216
+ Filter by type:
217
+ ```bash
218
+ testzeus test-data list --filters type=test
219
+ ```
220
+
221
+ ### Get Test Data Details
222
+
223
+ ```bash
224
+ testzeus test-data get <data-id>
225
+ testzeus test-data get <data-id> --expand related_entities
226
+ ```
227
+
228
+ ### Create Test Data
229
+
230
+ Create with inline content:
231
+
232
+ ```bash
233
+ testzeus test-data create --name "Test Data 1" --input-data "{\"key\":\"value\"}"
234
+ ```
235
+
236
+ Create with data from a file:
237
+
238
+ ```bash
239
+ testzeus test-data create --name "Test Data" --file ./data.json
240
+ ```
241
+
242
+ Additional options:
243
+ ```bash
244
+ testzeus test-data create --name "Test Data" --type test --status ready --file ./data.json
245
+ ```
246
+
247
+ ### Update Test Data
248
+
249
+ Update name and other properties:
250
+
251
+ ```bash
252
+ testzeus test-data update <data-id> --name "New Data Name" --type updated --status ready
253
+ ```
254
+
255
+ Update data content from text:
256
+
257
+ ```bash
258
+ testzeus test-data update <data-id> --input-data "{\"key\":\"updated\"}"
259
+ ```
260
+
261
+ Update data content from a file:
262
+
263
+ ```bash
264
+ testzeus test-data update <data-id> --file ./updated_data.json
265
+ ```
266
+
267
+ ### Delete Test Data
268
+
269
+ ```bash
270
+ testzeus test-data delete <data-id>
271
+ ```
272
+
273
+ ## Configuration
274
+
275
+ The CLI stores configuration and credentials in your user's config directory. Different profiles can be used to manage multiple TestZeus environments.
276
+
277
+ Default configuration location:
278
+ - Linux/Mac: `~/.testzeus/config.yaml`
279
+ - Windows: `%APPDATA%\testzeus\config.yaml`
280
+
281
+ Passwords are securely stored in your system's keyring.
282
+
283
+ ## Examples
284
+
285
+ ### Complete Workflow
286
+
287
+ ```bash
288
+ # Login to TestZeus
289
+ testzeus login
290
+
291
+ # Create test data
292
+ testzeus test-data create --name "User Data" --input-data "{\"username\":\"testuser\"}"
293
+
294
+ # Create a new test with features from a file
295
+ testzeus tests create --name "Login Test" --feature-file ./features/login.feature --data <test_data_id>
296
+
297
+ # Run the test
298
+ testzeus test-runs create --name "Login Run 1" --test <test_id>
299
+
300
+ # Watch the test run progress
301
+ testzeus test-runs watch <test_run_id>
302
+
303
+ # Check detailed results
304
+ testzeus test-runs get-expanded <test_run_id>
305
+
306
+ # Download any attachments generated during the run
307
+ testzeus test-runs download-attachments <test_run_id> --output-dir ./results
308
+ ```
309
+
310
+ ## Error Handling
311
+
312
+ When an error occurs, the CLI will display an error message. For more detailed information, run any command with the `--verbose` flag:
313
+
314
+ ```bash
315
+ testzeus tests list --verbose
316
+ ```
317
+
318
+ ## Output Formats
319
+
320
+ The CLI supports multiple output formats:
321
+
322
+ - `table`: Human-readable tabular format (default)
323
+ - `json`: JSON format for programmatic usage
324
+ - `yaml`: YAML format
325
+
326
+ Example:
327
+ ```bash
328
+ testzeus tests list --format json
329
+ ```
330
+
331
+ ## Development and Contribution
332
+
333
+ To contribute to the TestZeus CLI, fork the repository and install development dependencies:
334
+
335
+ ```bash
336
+ pip install -e ".[dev]"
337
+ ```
338
+
339
+ ### Release Process
340
+
341
+ The TestZeus CLI uses GitHub Actions for automated releases to PyPI. To create a release:
342
+
343
+ 1. Use the Makefile's release target: `make release`
344
+ 2. This will:
345
+ - Prompt for version bump type (patch, minor, major)
346
+ - Update the version in pyproject.toml
347
+ - Commit and create a git tag
348
+ - Push changes and tags to GitHub
349
+ 3. The tag push will automatically trigger the GitHub Actions publish workflow
@@ -0,0 +1,18 @@
1
+ testzeus_cli/__init__.py,sha256=CBdqTXQK7TXIdcoq5BPra_KQKR-dYywPlS4AfkETKmU,99
2
+ testzeus_cli/auth.py,sha256=QsyyOm1ImdtOkkHMeWvIeM7GLfV_7ICWlRy86dVNmHM,4423
3
+ testzeus_cli/cli.py,sha256=yd0Hj3UGw0XucZ2_vs3FPzHvh5KVByB4ULiLobPuIM4,2078
4
+ testzeus_cli/commands/__init__.py,sha256=RYnRecPx6QP3EdFypcJEVJgca2cUIRNUFWyTvBozzHI,42
5
+ testzeus_cli/commands/test_data.py,sha256=zfX-gjGbDDG6aY8teypmiYL_eN2fczQn05_OVJFXm9E,9521
6
+ testzeus_cli/commands/test_runs.py,sha256=-t0-jX6XkzE7KAAWZ_L9F1JXk2-Gu1qeWR0-anc6Dto,10276
7
+ testzeus_cli/commands/tests.py,sha256=CvMIIiup2ZGEY18Hqk6dxj8Ap_9lO8Wg545aTum4E3E,12976
8
+ testzeus_cli/config.py,sha256=abyDsZbT0DHuapEke3LRVBAer-Sab-tPsjtQSoE88n4,4000
9
+ testzeus_cli/utils/__init__.py,sha256=qhtQjW56F2OCT6VwpMWyElJQm7AYhVvMghsC9GiQCYc,262
10
+ testzeus_cli/utils/auth.py,sha256=xSxjuQ471Gr1x6PJpntqBhhnp58XYcy63pSjsCR8SR4,3012
11
+ testzeus_cli/utils/client.py,sha256=ZwIRIfDefeXt2AwMO1gb_obQwo1hIYp58d_uX5sRpSo,1676
12
+ testzeus_cli/utils/formatters.py,sha256=scAIGB_9-e4-rQDm_YC5_sP35S1_hfnvz3tsHa_GMwI,9433
13
+ testzeus_cli/utils/validators.py,sha256=t3p0gAiFTF8kcwMgkJWMY-4ph8FmkP0NVz4dd78NXEA,1706
14
+ testzeus_cli-0.0.2.dist-info/LICENSE,sha256=cNt9ujeMfXTPw-1JAGa5s58zXuFlKHf4IOZhiNvtnBc,1065
15
+ testzeus_cli-0.0.2.dist-info/METADATA,sha256=_KA2QRK8bahzbL-XPUgSE-CE3ggtCqIpVqagHtKfPmk,7471
16
+ testzeus_cli-0.0.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
17
+ testzeus_cli-0.0.2.dist-info/entry_points.txt,sha256=7-S3mNPFtfH4AB_etx7JRw4j8_KC0p5DljuIaKmVv6I,50
18
+ testzeus_cli-0.0.2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry-core 1.6.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ testzeus=testzeus_cli.cli:main
3
+