mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-20 01:20:59 +03:00
chore(tests): --help в runner и verify-snapshots, синхронизация README
Чтобы --help/-h/? не запускали полный прогон тестов. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
76800fc92b
commit
fc19df604b
+15
-1
@@ -14,10 +14,23 @@ node tests/skills/runner.mjs --verbose # подробн
|
||||
node tests/skills/runner.mjs --update-snapshots # обновить эталоны
|
||||
node tests/skills/runner.mjs --runtime python # запуск на PY-версиях
|
||||
node tests/skills/runner.mjs --json report.json # JSON-отчёт
|
||||
node tests/skills/runner.mjs --concurrency 4 # ограничить параллельность
|
||||
node tests/skills/runner.mjs --with-validation # + платформенная валидация
|
||||
node tests/skills/runner.mjs --help # полный список опций
|
||||
```
|
||||
|
||||
Exit code: 0 = все прошли, 1 = есть падения.
|
||||
|
||||
### Платформенная верификация снапшотов
|
||||
|
||||
```bash
|
||||
node tests/skills/verify-snapshots.mjs --skill form-compile # один навык
|
||||
node tests/skills/verify-snapshots.mjs --case table # один кейс
|
||||
node tests/skills/verify-snapshots.mjs --help # полный список опций
|
||||
```
|
||||
|
||||
Перепрогоняет навык из DSL кейса и грузит результат в 1С — отлавливает случаи, когда снапшоты обновили, но платформа уже не принимает выход.
|
||||
|
||||
## Что делать при падении
|
||||
|
||||
1. Смотри **case id** в выводе — это путь к файлу кейса (можно перезапустить: `node runner.mjs <case-id>`)
|
||||
@@ -194,7 +207,8 @@ node tests/skills/runner.mjs cases/meta-compile/enum --update-snapshots # од
|
||||
|
||||
```
|
||||
tests/skills/
|
||||
runner.mjs # тест-раннер
|
||||
runner.mjs # тест-раннер (snapshot-сравнение)
|
||||
verify-snapshots.mjs # платформенная верификация снапшотов
|
||||
README.md # этот файл
|
||||
.cache/ # кэш фикстур (в .gitignore)
|
||||
cases/
|
||||
|
||||
Reference in New Issue
Block a user