REQ-DDB-GUARD-010: Impact report generation¶
What it requires
- Impact report lists affected requirements with their changed functions
- tier
- PASS
- declared
- implemented
- priority
- P1
Where it lives
- Guard: the pre-commit gate15
- Build: docs, requirements and tests layers1
How it is met
Implemented by
_run_impact_commandclew/guard/main.py:597build_impact_reportclew/guard/impact.py:562build_reportclew/guard/impact.py:579cases_inclew/catch2.py:95collect_changesclew/guard/impact.py:185covering_testsclew/guard/reach.py:67find_indexclew/indexlocate.py:24format_jsonclew/guard/impact.py:747format_markdownclew/guard/impact.py:671format_textclew/guard/impact.py:780impact_entriesclew/guard/impact.py:832impact_reportclew/guard/impact.py:848own_reqsclew/guard/reach.py:186run_impactclew/guard/impact.py:815tests_forclew/guard/reach.py:146viaclew/guard/reach.py:170
Tests (28)
Linked directly
28 tests: 28 passed
28 passed
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
test_impact_no_files_returns_0 | passed | measured | 9 of 16 | — |
test_precommit_with_impact | passed | measured | 8 of 16 | — |
test_the_pre_commit_hook_runs_the_coverage_gate | passed | measured | 8 of 16 | — |
test_an_untagged_change_reaches_a_requirement_through_its_callers | passed | measured | 1 of 16: via | — |
test_a_range_with_no_files_reads_the_files_the_range_changed | passed | measured | 9 of 16 | 1 |
test_full_pipeline | passed | measured | 9 of 16 | 1 |
test_the_report_lists_via_tests_and_unmapped | passed | measured | 6 of 16 | 1 |
test_each_requirement_names_the_owners_of_the_changed_files | passed | measured | 4 of 16: build_impact_report, build_report, format_json, format_markdown | 1 |
test_no_owners_file_leaves_reviewers_out_rather_than_empty | passed | measured | 4 of 16: build_impact_report, build_report, format_json, format_markdown | 1 |
test_without_an_index_an_untagged_change_is_unmapped_and_says_why | passed | measured | 4 of 16: build_report, own_reqs, tests_for, via | 1 |
test_a_changed_declaration_carries_its_definition_s_requirements | passed | measured | 3 of 16: build_report, own_reqs, tests_for | 1 |
test_a_report_without_the_reach_step_keeps_its_shape | passed | measured | 3 of 16: build_impact_report, build_report, format_json | 1 |
test_a_change_in_test_code_is_reported_as_test_code | passed | measured | 2 of 16: build_report, tests_for | 1 |
test_covering_tests_are_read_from_the_test_tree | passed | measured | 2 of 16: cases_in, covering_tests | 1 |
test_empty_report | passed | measured | 2 of 16: format_markdown, format_text | 1 |
test_groups_by_requirement | passed | measured | 2 of 16: build_impact_report, build_report | 1 |
test_no_changes | passed | measured | 2 of 16: build_impact_report, build_report | 1 |
test_a_requirement_name_cannot_forge_table_rows | passed | measured | 1 of 16: format_markdown | 1 |
test_a_submodule_in_the_range_is_an_unmapped_file_never_opened | passed | measured | 1 of 16: collect_changes | 1 |
test_impact_json_names_its_schema_version | passed | measured | 1 of 16: format_json | 1 |
test_lists_reqs | passed | measured | 1 of 16: format_text | 1 |
test_renders_table | passed | measured | 1 of 16: format_markdown | 1 |
test_valid_json | passed | measured | 1 of 16: format_json | 1 |
test_finds_changed_function | passed | measured | 1 of 16: collect_changes | 2 |
test_no_change_no_result | passed | measured | 1 of 16: collect_changes | 2 |
test_unknown_extension_skipped | passed | measured | 1 of 16: collect_changes | 2 |
test_existing_declaration_is_not_overwritten_without_force | passed | measured | 1 of 16: find_index | 3 |
test_stdout_is_the_default_destination | passed | measured | 1 of 16: find_index | 3 |