File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/pytest_plugins/consume Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -421,9 +421,15 @@ def pytest_generate_tests(metafunc):
421
421
if test_case .format .format_name not in metafunc .config ._supported_fixture_formats :
422
422
continue
423
423
fork_markers = get_relative_fork_markers (test_case .fork , strict_mode = False )
424
+
425
+ # Append pre_hash (first 8 chars) to test ID for easier selection with --sim.limit
426
+ test_id = test_case .id
427
+ if hasattr (test_case , "pre_hash" ) and test_case .pre_hash :
428
+ test_id = f"{ test_case .id } [{ test_case .pre_hash [:8 ]} ]"
429
+
424
430
param = pytest .param (
425
431
test_case ,
426
- id = test_case . id ,
432
+ id = test_id ,
427
433
marks = [getattr (pytest .mark , m ) for m in fork_markers ]
428
434
+ [getattr (pytest .mark , test_case .format .format_name )]
429
435
+ [pytest .mark .xdist_group (name = test_case .pre_hash )],
You can’t perform that action at this time.
0 commit comments