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.
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/PKG-INFO +1 -1
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/pytest_plugin.py +13 -1
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest_cli.egg-info/PKG-INFO +1 -1
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/setup.py +1 -1
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/README.md +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/__init__.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/build_mapping_iterative.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/cli.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/cloud_mapping_db.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/config.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/coverage_mapper.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/git_diff_parser.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/post_commit_hook.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/pre_commit_hook.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/push_cache.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/range_set.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/test_mapping_db_v2.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest/update_mapping.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest_cli.egg-info/SOURCES.txt +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest_cli.egg-info/dependency_links.txt +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest_cli.egg-info/entry_points.txt +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest_cli.egg-info/requires.txt +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/pintest_cli.egg-info/top_level.txt +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/setup.cfg +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/tests/__init__.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/tests/test_cli_e2e.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/tests/test_git_diff_parser.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/tests/test_new_feature.py +0 -0
- {pintest_cli-0.3.3 → pintest_cli-0.3.4}/tests/test_range_set.py +0 -0
|
@@ -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(
|
|
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
|
|
@@ -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.
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|