refactor: split e2e and audit suites by subject

test_e2e.py (7,245 lines) becomes eight test_e2e_* modules whose TestE2E* classes inherit the shared scenario from tests/e2esupport.py. test_audit_regressions.py (8,391 lines) becomes eight test_audit_* modules, its constants in tests/auditsupport.py. Test bodies move verbatim and every test id keeps its method name.
This commit is contained in:
Abdessamad Derraz committed 2026-11-24 07:36:23 +01:00
1 parent 6dd9970fb6
commit 623ef5cabe
25 files changed
+15966 -15652

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ from __future__ import annotations
DEFAULT_MODE = "existence"
#: Every verification mode a platform YAML may declare. Mirrors the enum in
#: schemas/platform.schema.json, and tests/test_audit_regressions.py pins them
#: schemas/platform.schema.json, and tests/test_native_mode.py pins them
#: together so a new mode cannot be added to one without the other.
MODES = ("existence", "md5", "sha1")
+1 -1
View File
@@ -4,7 +4,7 @@
Usage:
python scripts/run_tests.py # every module, a few at a time
python scripts/run_tests.py --jobs 1 # one at a time, as discover runs
python scripts/run_tests.py tests.test_install tests.test_e2e
python scripts/run_tests.py tests.test_install tests.test_e2e_region
unittest's discovery runs 8,500 tests in one process: about 40 minutes
here and 85 on the CI runner, and a module that left a variable or a flag