pytest-json-ctrf 0.4.1__tar.gz → 0.5.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.
Files changed (18) hide show
  1. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/PKG-INFO +5 -1
  2. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/README.md +4 -0
  3. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/ctrf/Report.py +1 -1
  4. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/pyproject.toml +1 -1
  5. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/pytest_json_ctrf.egg-info/PKG-INFO +5 -1
  6. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/tests/test_plugin.py +4 -4
  7. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/ctrf/BaseMetadataReport.py +0 -0
  8. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/ctrf/CommonTestReportPlugin.py +0 -0
  9. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/ctrf/TestObject.py +0 -0
  10. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/ctrf/__init__.py +0 -0
  11. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/ctrf/main.py +0 -0
  12. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/pytest_json_ctrf.egg-info/SOURCES.txt +0 -0
  13. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/pytest_json_ctrf.egg-info/dependency_links.txt +0 -0
  14. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/pytest_json_ctrf.egg-info/entry_points.txt +0 -0
  15. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/pytest_json_ctrf.egg-info/requires.txt +0 -0
  16. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/pytest_json_ctrf.egg-info/top_level.txt +0 -0
  17. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/setup.cfg +0 -0
  18. {pytest_json_ctrf-0.4.1 → pytest_json_ctrf-0.5.0}/tests/test_example.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-json-ctrf
3
- Version: 0.4.1
3
+ Version: 0.5.0
4
4
  Summary: Pytest plugin to generate json report in CTRF (Common Test Report Format)
5
5
  Author: Oleksii Ostapov
6
6
  Project-URL: Infopulse, https://infopulse.com/
@@ -110,6 +110,10 @@ The `pytest_runtest_logreport` hook in the controller node is used to collect th
110
110
  - https://github.com/testomatio/pytestomatio -> Source of inspiration for creating pytest plugins
111
111
  - https://github.com/infopulse/Playwright-course-python -> The report will be used in the demo project as +1 report option
112
112
 
113
+ ## Changelog
114
+ - 0.5.0 - Changed logic of handling parametrized tests. Previously they were marked as retries, now they are reported as separate tests
115
+ - 0.4.1 - Introduced backward compatibility with python 3.8, fixed issues with the time formats
116
+
113
117
  ### Roadmap
114
118
  - Add screenshots handling
115
119
  - Add hooks for the report extension
@@ -95,6 +95,10 @@ The `pytest_runtest_logreport` hook in the controller node is used to collect th
95
95
  - https://github.com/testomatio/pytestomatio -> Source of inspiration for creating pytest plugins
96
96
  - https://github.com/infopulse/Playwright-course-python -> The report will be used in the demo project as +1 report option
97
97
 
98
+ ## Changelog
99
+ - 0.5.0 - Changed logic of handling parametrized tests. Previously they were marked as retries, now they are reported as separate tests
100
+ - 0.4.1 - Introduced backward compatibility with python 3.8, fixed issues with the time formats
101
+
98
102
  ### Roadmap
99
103
  - Add screenshots handling
100
104
  - Add hooks for the report extension
@@ -62,7 +62,7 @@ class Report:
62
62
 
63
63
  def process_retries(self) -> None:
64
64
  for test_id, test_data in self.test_items.items():
65
- name = test_id.split('[')[0]
65
+ name = str(test_id)
66
66
  test: Optional[TestObject] = self.prepared_tests.get(name)
67
67
  if test:
68
68
  test.status = test_data.status
@@ -10,7 +10,7 @@ exclude = [
10
10
 
11
11
  [project]
12
12
  name = "pytest-json-ctrf"
13
- version = "0.4.1"
13
+ version = "0.5.0"
14
14
 
15
15
  dependencies = [
16
16
  "pytest>6.0.0",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-json-ctrf
3
- Version: 0.4.1
3
+ Version: 0.5.0
4
4
  Summary: Pytest plugin to generate json report in CTRF (Common Test Report Format)
5
5
  Author: Oleksii Ostapov
6
6
  Project-URL: Infopulse, https://infopulse.com/
@@ -110,6 +110,10 @@ The `pytest_runtest_logreport` hook in the controller node is used to collect th
110
110
  - https://github.com/testomatio/pytestomatio -> Source of inspiration for creating pytest plugins
111
111
  - https://github.com/infopulse/Playwright-course-python -> The report will be used in the demo project as +1 report option
112
112
 
113
+ ## Changelog
114
+ - 0.5.0 - Changed logic of handling parametrized tests. Previously they were marked as retries, now they are reported as separate tests
115
+ - 0.4.1 - Introduced backward compatibility with python 3.8, fixed issues with the time formats
116
+
113
117
  ### Roadmap
114
118
  - Add screenshots handling
115
119
  - Add hooks for the report extension
@@ -48,8 +48,8 @@ def test_with_markers(pytester: Pytester):
48
48
 
49
49
 
50
50
  def test_with_plugin_no_xdist(ctrf_report_sync):
51
- assert ctrf_report_sync["results"]["summary"]["tests"] == 12
52
- assert ctrf_report_sync["results"]["summary"]["passed"] == 6
51
+ assert ctrf_report_sync["results"]["summary"]["tests"] == 20
52
+ assert ctrf_report_sync["results"]["summary"]["passed"] == 14
53
53
  assert ctrf_report_sync["results"]["summary"]["failed"] == 5
54
54
  assert ctrf_report_sync["results"]["summary"]["skipped"] == 1
55
55
 
@@ -70,8 +70,8 @@ def test_any_test_has_timestamps(ctrf_report_sync):
70
70
 
71
71
 
72
72
  def test_with_plugin_with_xdist(ctrf_report_xdist):
73
- assert ctrf_report_xdist["results"]["summary"]["tests"] == 12
74
- assert ctrf_report_xdist["results"]["summary"]["passed"] == 6
73
+ assert ctrf_report_xdist["results"]["summary"]["tests"] == 20
74
+ assert ctrf_report_xdist["results"]["summary"]["passed"] == 14
75
75
  assert ctrf_report_xdist["results"]["summary"]["failed"] == 5
76
76
  assert ctrf_report_xdist["results"]["summary"]["skipped"] == 1
77
77