← Graph

Move transformation vs refactoring when tests change

question 2 connections

Audience member notes that moving code in a refactoring usually also changes tests, and asks whether this is difficult. Gamsjaeger: these are typically extracted as move and rename commits. Under atomic-commit discipline you often extract a move from a larger refactoring — the move forms a subcategory of refactoring but qualifies as a separate improvement because being in a better location is itself worth a small, cheap transformation even without the rest of the refactor.

answer_summary
Extract a move or rename as its own atomic commit from within a larger refactoring; being in a better location/name is an improvement by itself.
question Move transformation vs refactoring when tests change
about
Question concerns the move and refactor transformations.
question Move transformation vs refactoring when tests change
asked_at
Audience question during Q&A.

Provenance

Read by
2 extractions