codemie-test-harness 0.1.201__py3-none-any.whl → 0.1.202__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.

Potentially problematic release.


This version of codemie-test-harness might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: codemie-test-harness
3
- Version: 0.1.201
3
+ Version: 0.1.202
4
4
  Summary: Autotest for CodeMie backend and UI
5
5
  Author: Anton Yeromin
6
6
  Author-email: anton_yeromin@epam.com
@@ -13,7 +13,7 @@ Requires-Dist: aws-assume-role-lib (>=2.10.0,<3.0.0)
13
13
  Requires-Dist: boto3 (>=1.39.8,<2.0.0)
14
14
  Requires-Dist: click (>=8.1.7,<9.0.0)
15
15
  Requires-Dist: codemie-plugins (>=0.1.123,<0.2.0)
16
- Requires-Dist: codemie-sdk-python (==0.1.201)
16
+ Requires-Dist: codemie-sdk-python (==0.1.202)
17
17
  Requires-Dist: pytest (>=8.4.1,<9.0.0)
18
18
  Requires-Dist: pytest-playwright (>=0.7.0,<0.8.0)
19
19
  Requires-Dist: pytest-repeat (>=0.9.3,<0.10.0)
@@ -59,6 +59,7 @@ The CLI now provides four main command groups:
59
59
  2. **`run`** - Enhanced test execution with flexible parameters
60
60
  3. **`assistant`** - Direct assistant interaction and chat capabilities
61
61
  4. **`workflow`** - Workflow execution
62
+ 5. **`marks`** - List all available pytest marks in the test suite.
62
63
 
63
64
  Each command group includes extensive help and validation features.
64
65
 
@@ -101,6 +102,49 @@ codemie-test-harness config set PYTEST_RERUNS 2
101
102
  codemie-test-harness config set PYTEST_COUNT 10 # For performance testing (optional)
102
103
  ```
103
104
 
105
+ #### Running Tests Locally (Minimal Configuration)
106
+
107
+ If you're running tests against a **local CodeMie instance** and want to use integration settings already stored in AWS Parameter Store (instead of configuring each integration manually), you only need to set these **4 minimal keys**:
108
+
109
+ ```shell
110
+ # Minimal local setup - uses AWS Parameter Store for all integrations
111
+ codemie-test-harness config set AWS_ACCESS_KEY <your_aws_access_key>
112
+ codemie-test-harness config set AWS_SECRET_KEY <your_aws_secret_key>
113
+ codemie-test-harness config set CODEMIE_API_DOMAIN http://localhost:8080
114
+ codemie-test-harness config set TEST_USER_FULL_NAME "dev-codemie-user"
115
+ ```
116
+
117
+ Then run your tests:
118
+
119
+ ```shell
120
+ # Run all tests locally
121
+ codemie-test-harness run
122
+
123
+ # Run specific test categories
124
+ codemie-test-harness run --marks smoke
125
+ codemie-test-harness run --marks "api and not not_for_parallel_run" -n 8
126
+ ```
127
+
128
+ **How it works:**
129
+ - The AWS credentials allow the test harness to automatically fetch integration credentials (GitLab, JIRA, Confluence, etc.) from AWS Parameter Store
130
+ - You don't need to manually configure individual integrations unless you want to override specific values
131
+ - All 86+ integration variables are automatically pulled from Parameter Store as needed
132
+ - This is ideal for local development and testing against your local CodeMie backend
133
+
134
+ **To override specific integrations locally:**
135
+
136
+ If you need to use your own tokens instead of shared Parameter Store values:
137
+
138
+ ```shell
139
+ # Override with personal GitLab token
140
+ codemie-test-harness config set GITLAB_TOKEN <your_personal_token>
141
+
142
+ # Override with personal JIRA credentials
143
+ codemie-test-harness config set JIRA_TOKEN <your_personal_token>
144
+ ```
145
+
146
+ Values set explicitly in the config take priority over AWS Parameter Store values.
147
+
104
148
  #### Integration Categories & Management
105
149
 
106
150
  The CLI supports **10 major integration categories** with comprehensive credential management:
@@ -296,6 +340,35 @@ codemie-test-harness --git-env github run --marks git
296
340
  codemie-test-harness run --marks ui --headless
297
341
  ```
298
342
 
343
+ #### Advanced Marks Usage (Logical Operators)
344
+
345
+ Combine multiple markers using `and`, `or`, and `not` keywords for fine-grained test selection:
346
+
347
+ ```shell
348
+ # OR operator - run tests with either marker
349
+ codemie-test-harness run --marks "smoke or gitlab" -n 8
350
+ codemie-test-harness run --marks "jira_kb or confluence_kb" -n 6
351
+
352
+ # AND operator - run tests with both markers
353
+ codemie-test-harness run --marks "api and smoke" -n 10
354
+ codemie-test-harness run --marks "gitlab and code_kb" -n 4
355
+
356
+ # NOT operator - exclude specific markers
357
+ codemie-test-harness run --marks "api and not ui" -n 10
358
+ codemie-test-harness run --marks "not not_for_parallel_run" -n 12
359
+
360
+ # Complex combinations with parentheses
361
+ codemie-test-harness run --marks "(smoke or api) and not ui" -n 8
362
+ codemie-test-harness run --marks "(gitlab or github) and not not_for_parallel_run" -n 10
363
+ codemie-test-harness run --marks "smoke and (jira_kb or confluence_kb)" -n 6
364
+
365
+ # Exclude multiple markers
366
+ codemie-test-harness run --marks "api and not (ui or not_for_parallel_run)" -n 10
367
+
368
+ # Run all knowledge base tests except code
369
+ codemie-test-harness run --marks "(jira_kb or confluence_kb) and not code_kb" -n 8
370
+ ```
371
+
299
372
  #### Performance and Load Testing
300
373
 
301
374
  Run tests multiple times in parallel to simulate load and measure performance:
@@ -542,7 +615,7 @@ The credentials manager supports **86+ environment variables** across **10 categ
542
615
  2) Create a .env file in the project root. If you provide AWS credentials, the suite will fetch additional values from AWS Systems Manager Parameter Store and recreate .env accordingly.
543
616
 
544
617
  ```properties
545
- ENV=local
618
+ CODEMIE_API_DOMAIN=http://localhost:8080
546
619
 
547
620
  AWS_ACCESS_KEY=<aws_access_token>
548
621
  AWS_SECRET_KEY=<aws_secret_key>
@@ -594,9 +667,42 @@ pytest -n 10 --count 50 -m excel_generation # Run 50 times with 10 workers
594
667
  pytest -n 20 --count 100 -m smoke --reruns 2 # Heavy load with retries
595
668
  ```
596
669
 
670
+ **Advanced Marks Usage with Logical Operators:**
671
+
672
+ Combine markers using `and`, `or`, and `not` for precise test selection:
673
+
674
+ ```shell
675
+ # OR operator - run tests with either marker
676
+ pytest -n 8 -m "smoke or gitlab" --reruns 2
677
+ pytest -n 6 -m "jira_kb or confluence_kb" --reruns 2
678
+
679
+ # AND operator - run tests with both markers
680
+ pytest -n 10 -m "api and smoke" --reruns 2
681
+ pytest -n 4 -m "gitlab and code_kb" --reruns 2
682
+
683
+ # NOT operator - exclude specific markers
684
+ pytest -n 10 -m "api and not ui" --reruns 2
685
+ pytest -n 12 -m "not not_for_parallel_run" --reruns 2
686
+
687
+ # Complex combinations with parentheses
688
+ pytest -n 8 -m "(smoke or api) and not ui" --reruns 2
689
+ pytest -n 10 -m "(gitlab or github) and not not_for_parallel_run" --reruns 2
690
+ pytest -n 6 -m "smoke and (jira_kb or confluence_kb)" --reruns 2
691
+
692
+ # Exclude multiple markers
693
+ pytest -n 10 -m "api and not (ui or not_for_parallel_run)" --reruns 2
694
+
695
+ # Run all knowledge base tests except code KB
696
+ pytest -n 8 -m "(jira_kb or confluence_kb) and not code_kb" --reruns 2
697
+
698
+ # Run all Git-related tests (GitLab or GitHub)
699
+ pytest -n 8 -m "gitlab or github or git" --reruns 2
700
+ ```
701
+
597
702
  **Notes:**
598
703
  - `--reruns 2` uses pytest-rerunfailures to improve resiliency in flaky environments
599
704
  - `--count N` uses pytest-repeat to run each test N times (useful for performance/load testing)
705
+ - Use quotes around marker expressions containing spaces or special characters
600
706
 
601
707
  #### Test Timeout Configuration
602
708
 
@@ -391,7 +391,7 @@ codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/__init__.
391
391
  codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/test_workflow_with_servicenow_tools.py,sha256=D835gaRbCnB4va5mi9TdA_u9StSpGXQ_fgzwW0S2pwo,1173
392
392
  codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
393
393
  codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/test_workflow_with_vcs_tools.py,sha256=Se9imIiBYuJU78m1pLu0g4ZmHygKZjr6JjIWkGXTy1Q,1364
394
- codemie_test_harness-0.1.201.dist-info/METADATA,sha256=sImU4ox8RDDcp34BebNcJV-gT_ua2wqx9kNKs0rIDWo,22968
395
- codemie_test_harness-0.1.201.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
396
- codemie_test_harness-0.1.201.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
397
- codemie_test_harness-0.1.201.dist-info/RECORD,,
394
+ codemie_test_harness-0.1.202.dist-info/METADATA,sha256=9xYAqqEciTJKycdxV0HID1vYNmZFI-qLDaRKtFkC1lE,27184
395
+ codemie_test_harness-0.1.202.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
396
+ codemie_test_harness-0.1.202.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
397
+ codemie_test_harness-0.1.202.dist-info/RECORD,,