mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-06 06:38:57 +00:00
ci(mutants): an unmatched --test-name-pattern is setup-failure, not survived (#650)
A name-filtered `node --test` that matches no test exits 0 and TAP reports only the file itself. The clean run took that for a healthy witness and the mutant run for `survived`, although no assertion ran either time — as in Validate 36151140394 on #649, where a renamed test left a guard pattern empty. - mutation-guard-outcome: nodeTestSelection/executedTestNames/ emptyTestSelection; a green oracle with a name filter and zero executed named tests is `setup-failure` (clean run: «FAIL чистая подготовка», diff mode: attributed like any setup failure, #568). - mutation-gate --check: staticTestSelectionProblems — every pattern must match a literal test(/it(/describe( name in the guard's files; files with ${…} names only warn. POSIX quoting keeps \( inside "…". - Registry today: 349 unique name-filtered commands run on dev, all execute ≥ 1 test; --check: 0 errors, 3 warnings (dynamic names). - Tests: 6 new in test/mutation-guard-outcome.test.mjs (incl. the installed node's real TAP and a registry-wide static check); 3 mutants. - Docs: TESTING.md pointer, testing-notes/infrastructure.md section. Issue: #650 User-Visible: no
This commit is contained in:
+2
-1
@@ -89,7 +89,8 @@ worktree стартует с тёплого `test-build/` основного д
|
||||
ledger. Compile-time проверка допустима как самостоятельный свидетель лишь с
|
||||
явным полем определения `oracle: 'compile'`; прятать её в префиксе обычного
|
||||
browser/backend guard нельзя. Все недоказанные исходы завершают гейт кодом 2 и
|
||||
отдельно называются в ночном отчёте.
|
||||
отдельно называются в ночном отчёте. Гвард с `--test-name-pattern`, не исполнивший
|
||||
ни одного теста, — тоже `setup-failure` ([#650](testing-notes/infrastructure.md#пустое-совпадение---test-name-pattern-650)).
|
||||
|
||||
С #568 `setup-failure` в дифф-режиме **атрибутируется**: раннер прогоняет
|
||||
ОПРЕДЕЛЕНИЕ БАЗЫ диапазона на дереве базы и говорит, чей это отказ.
|
||||
|
||||
Reference in New Issue
Block a user