[verified] Clarify named-test evidence and rework reporting
This commit is contained in:
@@ -58,6 +58,27 @@ class PriorityReviewContracts(unittest.TestCase):
|
||||
'제품 저장소의 새 산출물이나 result schema 변경을 요구하지'):
|
||||
self.assertIn(value, text)
|
||||
|
||||
def test_named_test_documentation_contract_requires_call_assertion_cross_check(self):
|
||||
text = IMPLEMENTATION.read_text()
|
||||
heading = '### Named test 근거와 재작업 보고'
|
||||
self.assertIn(heading, text)
|
||||
section = text.split(heading, 1)[1].split('\n## ', 1)[0]
|
||||
for rule in ('exact reviewed head', '실제 호출 인수와 assertions',
|
||||
'검증하는 경우와 검증하지 않는 경우', '정적 확인과 실제 실행',
|
||||
'테스트 이름이나 PASS 수치만으로', '확인 한계'):
|
||||
with self.subTest(rule=rule):
|
||||
self.assertIn(rule, section)
|
||||
|
||||
def test_rework_report_documentation_contract_requires_categories_and_counting_rules(self):
|
||||
text = IMPLEMENTATION.read_text()
|
||||
section = text.split('### Named test 근거와 재작업 보고', 1)[1].split('\n## ', 1)[0]
|
||||
for rule in ('해소:', '잔여:', '신규:', '문서 보완:', '해당 없음',
|
||||
'같은 원인의 구현·문서 finding', '중복 집계하지 않는다',
|
||||
'승인 계약 위반', 'blocker로 승격하지 않는다',
|
||||
'result schema나 renderer', '자동 assertion 해석기'):
|
||||
with self.subTest(rule=rule):
|
||||
self.assertIn(rule, section)
|
||||
|
||||
def test_local_links_resolve_and_procedures_reference_new_rules(self):
|
||||
for path in (DISCOVERY, IMPLEMENTATION, README):
|
||||
text = path.read_text()
|
||||
|
||||
Reference in New Issue
Block a user