robotframework-logxml2chunks 1.1.3__tar.gz → 1.1.4__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.
Files changed (16) hide show
  1. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/LogXML2Chunks/LogXML2Chunks.py +10 -3
  2. {robotframework_logxml2chunks-1.1.3/robotframework_logxml2chunks.egg-info → robotframework_logxml2chunks-1.1.4}/PKG-INFO +1 -1
  3. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4/robotframework_logxml2chunks.egg-info}/PKG-INFO +1 -1
  4. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/setup.py +1 -1
  5. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/LICENSE +0 -0
  6. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/LogXML2Chunks/__init__.py +0 -0
  7. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/LogXML2Chunks/cli.py +0 -0
  8. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/README.md +0 -0
  9. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/robotframework_logxml2chunks.egg-info/SOURCES.txt +0 -0
  10. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/robotframework_logxml2chunks.egg-info/dependency_links.txt +0 -0
  11. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/robotframework_logxml2chunks.egg-info/entry_points.txt +0 -0
  12. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/robotframework_logxml2chunks.egg-info/not-zip-safe +0 -0
  13. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/robotframework_logxml2chunks.egg-info/requires.txt +0 -0
  14. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/robotframework_logxml2chunks.egg-info/top_level.txt +0 -0
  15. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/setup.cfg +0 -0
  16. {robotframework_logxml2chunks-1.1.3 → robotframework_logxml2chunks-1.1.4}/tests/test_logxml2chunks.py +0 -0
@@ -18,7 +18,7 @@ from pathlib import Path
18
18
 
19
19
  class LogXML2Chunks:
20
20
 
21
- def __init__(self, debug=True, filename_prefix_pattern=None):
21
+ def __init__(self, debug=True, filename_prefix_pattern=None, filename_prefix_static=None):
22
22
  """
23
23
  Initialize LogXML2Chunks instance.
24
24
 
@@ -34,6 +34,7 @@ class LogXML2Chunks:
34
34
  """
35
35
  self.debug = debug
36
36
  self.filename_prefix_pattern = re.compile(filename_prefix_pattern) if filename_prefix_pattern else None
37
+ self.filename_prefix_static = filename_prefix_static
37
38
 
38
39
  def _debug_print(self, *args, **kwargs):
39
40
  """Print only if debug mode is enabled."""
@@ -450,8 +451,14 @@ class LogXML2Chunks:
450
451
  test_name = test.get('name')
451
452
  test_id = test.get('id')
452
453
 
453
- # Extract filename prefix (if pattern is configured)
454
- prefix = self._extract_filename_prefix(test, suite, root)
454
+ # Setup prefix for filenames based on configuration
455
+ if self.filename_prefix_static:
456
+ prefix = self.filename_prefix_static
457
+ elif self.filename_prefix_pattern:
458
+ # Extract filename prefix (if pattern is configured)
459
+ prefix = self._extract_filename_prefix(test, suite, root)
460
+ else:
461
+ prefix = None
455
462
 
456
463
  # Create a safe filename (with prefix if available)
457
464
  safe_name = test_name.replace(' ', '_').replace('/', '_').replace('\\', '_')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robotframework-logxml2chunks
3
- Version: 1.1.3
3
+ Version: 1.1.4
4
4
  Summary: Extract individual test cases from Robot Framework output.xml into separate chunks
5
5
  Home-page: https://github.com/ajadach/robotframework-LogXML2Chunks
6
6
  Author: Artur Jadach
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robotframework-logxml2chunks
3
- Version: 1.1.3
3
+ Version: 1.1.4
4
4
  Summary: Extract individual test cases from Robot Framework output.xml into separate chunks
5
5
  Home-page: https://github.com/ajadach/robotframework-LogXML2Chunks
6
6
  Author: Artur Jadach
@@ -10,7 +10,7 @@ long_description = (this_directory / "README.md").read_text(encoding='utf-8')
10
10
 
11
11
  setup(
12
12
  name='robotframework-logxml2chunks',
13
- version='1.1.3',
13
+ version='1.1.4',
14
14
  author='Artur Jadach',
15
15
  author_email='artur.k.ziolkowski@example.com',
16
16
  description='Extract individual test cases from Robot Framework output.xml into separate chunks',