Remove dead code and tests that cannot fail closes #605 #608
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
optional
question
S
security
technical improvement
UX Improvement
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
local-it/mitgliederverwaltung!608
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue/mitgliederverwaltung-605"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #605
Description of the implemented changes
The changes were:
Remove dead code and tests that cannot fail: production code without a caller is removed (the unused email confirmation flow, uncalled functions, read actions and code interfaces, the CalendarCycles today-wrappers), a new guideline requires at least one caller per code interface, and the tests in every touched file now fail when the behaviour they name breaks — each changed test was seen red under a targeted break, and duplicates subsumed by a stricter sibling are deleted.
What has been changed?
Definition of Done
Code Quality
Accessibility
Testing
Additional Notes
The review loop hit its cap of 4 iterations; every iteration found further instances of the same two test classes (cannot fail, redundant) in pre-existing tests of the touched files, all fixed. Remaining instances and the same classes in untouched test files are collected for follow-up issues.
Larger commits: remove the email confirmation flow (14 files), run tests through the app's paths (14 files), and the test hardening commits for groups (6 files, −607), members page (5 files, −625), import (−223) and domain-level tests (8 files, −315).
Handed over, not touched here: the
FieldSelectioncookie/session functions (#549),button :active(#602),dropdown_menu :menu_class,table :row_value_id,Layouts.app :current_scope, thephx:set-input-valuelistener (#554), the SMTP warning test (#540),CustomField :prepare_deletionwith its interface, and the gettext#~entries.The test count drops from 2621 to 2556: deleted tests were subsumed by a stricter sibling.