pintest-cli 0.3.7__tar.gz → 0.3.8__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.7 → pintest_cli-0.3.8}/PKG-INFO +1 -1
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/cli.py +1 -1
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest_cli.egg-info/PKG-INFO +1 -1
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/setup.py +1 -1
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/tests/test_cli_e2e.py +2 -2
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/README.md +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/__init__.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/build_mapping_iterative.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/cloud_mapping_db.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/config.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/coverage_mapper.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/git_diff_parser.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/post_commit_hook.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/pre_commit_hook.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/push_cache.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/pytest_plugin.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/range_set.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/test_mapping_db_v2.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest/update_mapping.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest_cli.egg-info/SOURCES.txt +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest_cli.egg-info/dependency_links.txt +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest_cli.egg-info/entry_points.txt +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest_cli.egg-info/requires.txt +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/pintest_cli.egg-info/top_level.txt +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/setup.cfg +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/tests/__init__.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/tests/test_git_diff_parser.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/tests/test_new_feature.py +0 -0
- {pintest_cli-0.3.7 → pintest_cli-0.3.8}/tests/test_range_set.py +0 -0
|
@@ -141,7 +141,7 @@ class PintestRunner:
|
|
|
141
141
|
return 0
|
|
142
142
|
|
|
143
143
|
test_list = sorted(test_selection)
|
|
144
|
-
chunk_size =
|
|
144
|
+
chunk_size = 1000
|
|
145
145
|
has_xdist = pytest_args and any(
|
|
146
146
|
arg == '-n' or arg.startswith('-n=') or arg == '--numprocesses' or arg.startswith('--numprocesses=')
|
|
147
147
|
for arg in pytest_args
|
|
@@ -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.8",
|
|
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",
|
|
@@ -163,8 +163,8 @@ def test_pintest_chunking_and_fail_fast(dummy_repo):
|
|
|
163
163
|
from pintest.cli import PintestRunner
|
|
164
164
|
runner = PintestRunner(dummy_repo, verbose=True)
|
|
165
165
|
|
|
166
|
-
# Generate
|
|
167
|
-
dummy_tests = {f"tests/test_math.py::test_dummy_{i}" for i in range(
|
|
166
|
+
# Generate 1005 dummy test names
|
|
167
|
+
dummy_tests = {f"tests/test_math.py::test_dummy_{i}" for i in range(1005)}
|
|
168
168
|
|
|
169
169
|
# Run with fail-fast (-x)
|
|
170
170
|
# Since these dummy tests don't exist, pytest will fail on the first chunk.
|
|
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
|