Files
enduro-trails/docs/work-items/ET-001/04-test-plan.yaml
claude-bot b35fa30a49
All checks were successful
CI / lint (push) Successful in 5s
CI / test (push) Successful in 5s
CI / build (push) Successful in 3s
docs(ET-001): business request, BRD, TRZ, acceptance criteria, test plan
2026-05-15 21:56:57 +03:00

42 lines
1.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
work_item_id: ET-001
version: 1
tests:
- id: TC-001
type: integration
title: "Маршрут обходит шлагбаум"
precondition: "OSRM граф пересобран с новым профилем"
steps:
- "POST /api/route с точками, между которыми есть шлагбаум"
- "Проверить что маршрут не проходит через ноду шлагбаума"
expected: "Маршрут обходит шлагбаум или возвращает 404"
- id: TC-002
type: integration
title: "Маршрут не идёт по тротуару"
precondition: "OSRM граф пересобран"
steps:
- "POST /api/route с точками в городе"
- "Проверить что геометрия маршрута не содержит footway-сегментов"
expected: "Маршрут идёт только по проезжим дорогам"
- id: TC-003
type: integration
title: "cattle_grid не блокирует маршрут"
steps:
- "POST /api/route через точку с cattle_grid"
expected: "Маршрут проходит через cattle_grid нормально"
- id: TC-004
type: unit
title: "Lua профиль — синтаксис"
steps:
- "luac -p infra/osrm/enduro.lua"
expected: "Exit code 0, нет ошибок"
- id: TC-005
type: regression
title: "Существующий маршрут не сломан"
steps:
- "POST /api/route с точками без шлагбаумов/тротуаров"
expected: "Маршрут строится, distance > 0, geometry не пустая"