Expand test suite: 84 → 139 tests covering all bugfixes
New test files: - test-config.scm (15 tests): find-config directory walking, load-config with explicit/missing/auto-discovery paths, merge-configs override semantics, generate-template pretty-print output validity. - test-engine.scm (40 tests): filter-rules-by-config with enable/disable/combined, severity>=? helper, lint-file with --pass surface (no compile errors leak), severity filtering (info excluded at warning level), rule disabling via config. Fix mode tests: trailing-whitespace fix, comment-semicolons fix (single ; → ;;), no-tabs fix (8-space expansion), tab-stop alignment, blank-lines deletion, fix composition (tabs + trailing whitespace on same line), idempotency (second pass changes nothing), multi-pass convergence (3-way conflict: tabs + trailing + comment on same line converges in 2 passes). Compile-error formatting: no raw ~S/~A format specifiers in error messages, module name present in output. Integration: lint-files with %fix mode applies fixes and returns 0 unfixed count.
This commit is contained in:
@@ -31,4 +31,6 @@
|
||||
(load-test "test-cst.scm")
|
||||
(load-test "test-rules.scm")
|
||||
(load-test "test-suppression.scm")
|
||||
(load-test "test-compiler.scm"))
|
||||
(load-test "test-compiler.scm")
|
||||
(load-test "test-config.scm")
|
||||
(load-test "test-engine.scm"))
|
||||
|
||||
Reference in New Issue
Block a user