mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 15:43:06 +02:00
- meta/.pre-commit-config.yaml: move pytest-coverage hook to pre-commit stage - scripts/pytest_changed_packages.py: single batched pytest -n auto invocation with one --cov flag per affected python_pkg subpackage, wrapped in systemd-run --user --scope -p MemoryMax=4G -p MemorySwapMax=0 when available - python_pkg/steam_backlog_enforcer/tests/conftest.py: new autouse _no_real_sleep fixture patches time.sleep across game_install / library_hider / steam_api / _enforce_loop. Removes 3x 15s real sleeps in TestFinalizeCompletion that fired through _ensure_steam_running steam_backlog_enforcer test wall time: 33.97s -> 5.61s (xdist, no-cov) 5-package batched run: 732 tests in 1.37s @ 668% CPU Coverage stays at 100% on all affected packages. Evidence: docs/superpowers/evidence/pre-commit-pytest-batch-2026-05-14.json |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_cmd_done.py | ||
| test_config.py | ||
| test_enforce_loop.py | ||
| test_enforcer.py | ||
| test_game_install_part2.py | ||
| test_game_install.py | ||
| test_hltb_detail.py | ||
| test_hltb_part2.py | ||
| test_hltb_part3.py | ||
| test_hltb_search.py | ||
| test_hltb.py | ||
| test_library_hider_part2.py | ||
| test_library_hider.py | ||
| test_main_part2.py | ||
| test_main.py | ||
| test_polls_tracking.py | ||
| test_protondb.py | ||
| test_scanning_part2.py | ||
| test_scanning.py | ||
| test_steam_api.py | ||
| test_store_blocker_part2.py | ||
| test_store_blocker.py | ||