pintest-cli 0.3.3__tar.gz → 0.3.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 (29) hide show
  1. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/PKG-INFO +1 -1
  2. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/pytest_plugin.py +13 -1
  3. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest_cli.egg-info/PKG-INFO +1 -1
  4. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/setup.py +1 -1
  5. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/README.md +0 -0
  6. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/__init__.py +0 -0
  7. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/build_mapping_iterative.py +0 -0
  8. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/cli.py +0 -0
  9. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/cloud_mapping_db.py +0 -0
  10. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/config.py +0 -0
  11. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/coverage_mapper.py +0 -0
  12. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/git_diff_parser.py +0 -0
  13. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/post_commit_hook.py +0 -0
  14. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/pre_commit_hook.py +0 -0
  15. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/push_cache.py +0 -0
  16. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/range_set.py +0 -0
  17. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/test_mapping_db_v2.py +0 -0
  18. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/update_mapping.py +0 -0
  19. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest_cli.egg-info/SOURCES.txt +0 -0
  20. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest_cli.egg-info/dependency_links.txt +0 -0
  21. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest_cli.egg-info/entry_points.txt +0 -0
  22. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest_cli.egg-info/requires.txt +0 -0
  23. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest_cli.egg-info/top_level.txt +0 -0
  24. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/setup.cfg +0 -0
  25. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/tests/__init__.py +0 -0
  26. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/tests/test_cli_e2e.py +0 -0
  27. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/tests/test_git_diff_parser.py +0 -0
  28. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/tests/test_new_feature.py +0 -0
  29. {pintest_cli-0.3.3 → pintest_cli-0.3.4}/tests/test_range_set.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pintest-cli
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: Run only the tests affected by your code changes.
5
5
  Author: Pintest Contributors
6
6
  Classifier: Development Status :: 3 - Alpha
@@ -159,8 +159,20 @@ def pytest_sessionfinish(session, exitstatus):
159
159
  pintest_dir = Path(session.config.rootdir) / ".pintest"
160
160
  pintest_dir.mkdir(parents=True, exist_ok=True)
161
161
  out_file = pintest_dir / "durations.json"
162
+
163
+ # Load existing durations if present to merge/upsert them
164
+ existing_durations = {}
165
+ if out_file.exists():
166
+ try:
167
+ with open(out_file, "r") as f:
168
+ existing_durations = json.load(f)
169
+ except Exception:
170
+ pass
171
+
172
+ existing_durations.update(test_durations)
173
+
162
174
  with open(out_file, "w") as f:
163
- json.dump(test_durations, f)
175
+ json.dump(existing_durations, f)
164
176
  except Exception as e:
165
177
  # Silently pass if we cannot write to rootdir
166
178
  pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pintest-cli
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: Run only the tests affected by your code changes.
5
5
  Author: Pintest Contributors
6
6
  Classifier: Development Status :: 3 - Alpha
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="pintest-cli",
8
- version="0.3.3",
8
+ version="0.3.4",
9
9
  description="Run only the tests affected by your code changes.",
10
10
  long_description=long_description,
11
11
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes