Refactoring
Also called: Refactor, Code cleanup
Rewriting code to make it cleaner or faster without meaning to change what it does.
Definition
Because nothing is supposed to change for users, refactors often arrive with no story and no acceptance criteria. In practice they do change behavior by accident. Testers ask which screens and rules use the rewritten code and run regression tests there.
In practice
After the price calculation is refactored, totals are right but the coupon is now applied before delivery fees instead of after.
Learn it in context
Lessons that use this term.
Related terms
- Regression testingRe-running tests to check that new changes didn't break things that used to work.
- Impact analysisWorking out which parts of a product a change could affect, to decide what to retest.
- Code reviewTeammates reading a code change and approving it or asking for changes before it's merged.