test-reporting 3.2.7__tar.gz → 3.3.0__tar.gz
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.
- {test_reporting-3.2.7 → test_reporting-3.3.0}/PKG-INFO +1 -1
- {test_reporting-3.2.7 → test_reporting-3.3.0}/reporting/plugin.py +8 -2
- {test_reporting-3.2.7 → test_reporting-3.3.0}/setup.py +1 -1
- {test_reporting-3.2.7 → test_reporting-3.3.0}/test_reporting.egg-info/PKG-INFO +1 -1
- {test_reporting-3.2.7 → test_reporting-3.3.0}/LICENSE +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/README.md +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/reporting/__init__.py +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/reporting/classifier.py +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/reporting/cli.py +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/reporting/config.py +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/reporting/publisher.py +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/reporting/storage.py +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/reporting/templates/index.html +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/reporting/templates/project.html +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/reporting/templates/run.html +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/setup.cfg +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/test_reporting.egg-info/SOURCES.txt +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/test_reporting.egg-info/dependency_links.txt +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/test_reporting.egg-info/entry_points.txt +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/test_reporting.egg-info/requires.txt +0 -0
- {test_reporting-3.2.7 → test_reporting-3.3.0}/test_reporting.egg-info/top_level.txt +0 -0
|
@@ -28,6 +28,9 @@ class TestReportingPlugin:
|
|
|
28
28
|
self.append_mode = os.getenv('TEST_APPEND_MODE', 'false').lower() == 'true'
|
|
29
29
|
self.attempt_number = int(os.getenv('TEST_ATTEMPT_NUMBER', '1'))
|
|
30
30
|
|
|
31
|
+
# Debug logging
|
|
32
|
+
logging.info(f"[Reporting] Plugin initialized - Session ID: {self.session_id}, Append Mode: {self.append_mode}, Attempt: {self.attempt_number}")
|
|
33
|
+
|
|
31
34
|
self.run_data = {
|
|
32
35
|
'project_name': self.config.PROJECT_NAME,
|
|
33
36
|
'timestamp': datetime.now().isoformat(),
|
|
@@ -53,8 +56,11 @@ class TestReportingPlugin:
|
|
|
53
56
|
"""Called at the start of the test session."""
|
|
54
57
|
self.config.ensure_directories()
|
|
55
58
|
|
|
56
|
-
# Determine suite name from
|
|
57
|
-
|
|
59
|
+
# Determine suite name from environment variable or pytest argument
|
|
60
|
+
suite_name_from_env = os.getenv('TEST_SUITE_NAME')
|
|
61
|
+
if suite_name_from_env:
|
|
62
|
+
self.run_data['suite_name'] = suite_name_from_env
|
|
63
|
+
elif hasattr(session.config, 'args') and session.config.args:
|
|
58
64
|
first_arg = session.config.args[0]
|
|
59
65
|
self.run_data['suite_name'] = Path(first_arg).stem
|
|
60
66
|
|
|
@@ -9,7 +9,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name='test-reporting',
|
|
12
|
-
version='3.
|
|
12
|
+
version='3.3.0',
|
|
13
13
|
description='Multi-project test reporting dashboard — collect results locally or push to S3',
|
|
14
14
|
long_description=long_description,
|
|
15
15
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|