fix(854-4): 관련 시험 찾기 — 마스터 자료 json 고침에 자료 시험 목록도 검
- 새 `tools/master_data_tests.txt`(한 줄 = 시험 파일): 791-1 지문 · 713-3 묶음 · 794-2b 개정 · 801-3 묶음 전수 · 855 대조 · 지문 - `related_tests.py` 가 자료 json 고침 때 핵심 넷과 함께 이 목록을 읽음(853-4 기준선에서 자료 고침으로 낡았는데 안 걸린 넷) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# 마스터 자료(resources/master_data/**.json)를 고치면 핵심 넷(sync_core_tests.txt)과 함께 도는 시험 — 한 줄 = 시험 파일
|
||||
# 자료 json 은 이름이 시험 글에 안 나와 이름 찾기로 안 걸림 · M01 자료를 통째로 읽어 셈 · 지문 · 건수를 보는 시험
|
||||
resources/tester/test_791_1_engine_semantics.py
|
||||
resources/tester/test_713_3_list.py
|
||||
resources/tester/test_794_2b_edition.py
|
||||
resources/tester/test_801_3_groups.py
|
||||
resources/tester/test_855_engine_parity.py
|
||||
resources/tester/test_855_golden.py
|
||||
@@ -40,10 +40,14 @@ def related(files: list[str]) -> list[str]:
|
||||
if h.is_file() and any(s in h.read_text(encoding="utf-8", errors="replace") for s in stems):
|
||||
stems.add(h.stem)
|
||||
hit = set(own)
|
||||
# 마스터 자료(json)는 이름이 시험 글에 안 나옴 → 싱크 관문 핵심 시험으로
|
||||
if any(f.replace("\\", "/").startswith("resources/master_data/") and f.endswith(".json") for f in files):
|
||||
core = (ROOT / "tools" / "sync_core_tests.txt").read_text(encoding="utf-8").split()
|
||||
hit |= {pathlib.PurePosixPath(c).name for c in core if c.endswith(".py")}
|
||||
# 마스터 자료(json)는 이름이 시험 글에 안 나옴 → 싱크 관문 핵심 시험 + 자료 시험 목록으로
|
||||
if any(
|
||||
f.replace("\\", "/").startswith("resources/master_data/") and f.endswith(".json")
|
||||
for f in files
|
||||
):
|
||||
for name in ("sync_core_tests.txt", "master_data_tests.txt"):
|
||||
listed = (ROOT / "tools" / name).read_text(encoding="utf-8").split()
|
||||
hit |= {pathlib.PurePosixPath(c).name for c in listed if c.endswith(".py")}
|
||||
for t in sorted(TESTS.glob("test_*.py")):
|
||||
if t.name in hit:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user