Receber por email
← Voltar para o catálogo

test-preserving-refactor

Use to restructure code while guaranteeing that all existing tests continue to pass.

7estrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: Apache-2.0

Como adicionar

/plugin marketplace add yeaight7/agent-powerups

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/test-preserving-refactor/svg)](https://www.skillteca.com.br/skills/test-preserving-refactor)

Skills relacionadas

Ver todas de Desenvolvimento →

Alerta por categoria

Receba novas skills de Desenvolvimento toda segunda

1 email curto, só com as skills novas de Desenvolvimento. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Test-Preserving Refactor

Refactoring is only safe if it is backed by tests.

The Protocol

  1. Run Tests First: Before touching any code, run the tests covering the target area. They MUST be green. If they are red, stop and fix the tests (or the code) first.
  2. Small Steps: Make one structural change at a time (e.g., extract a method).
  3. Run Tests Immediately: Run the tests immediately after the single structural change.
  4. Revert on Red: If the tests fail, you made a mist

[Description truncada. Veja o README completo no GitHub.]

Compartilhar X LinkedIn