Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 2 min read

Do your tests really catch bugs? / Seus testes pegam erro de verdade?

I measured this together with Claude, ran research and tests, and built a garden about whether tests really catch bugs. The idea is simple: a test can pass and still be weak. To find out how weak, I broke the code on pu

I measured this together with Claude, ran research and tests, and built a garden about whether tests really catch bugs.

The idea is simple: a test can pass and still be weak. To find out how weak, I broke the code on purpose and counted how many bugs the tests let through.

Then I did the same for each step of my AI workflow, from the spec (the text that describes what the code should do) to the commit. In the garden, each step has its own number, and the ideas that didn't pay off are there too.

There is one note just for what I still don't know, because the study is small, comes from a few projects, and nobody outside has checked it. And there is a step-by-step to repeat the measurement on your own project.

"A digital garden is a site of linked notes that the author keeps tending over time. It accepts unfinished notes and shows it, with a badge for how well each one is proven."

If you want to take a look: Digital-Garden

πŸ‡§πŸ‡·

Eu medi isso junto com o Claude, fiz pesquisas e testes, e criei um jardim sobre se os testes pegam erro de verdade.

A ideia Γ© simples: um teste pode passar e ainda assim ser fraco. Para saber o quanto, estraguei o cΓ³digo de propΓ³sito e contei quantos erros os testes deixaram passar.

Depois fiz o mesmo com cada passo do meu fluxo de trabalho com IA, da spec (o texto que descreve o que o cΓ³digo deve fazer) atΓ© o commit. No jardim, cada passo tem o seu nΓΊmero, e as ideias que nΓ£o compensaram tambΓ©m estΓ£o lΓ‘.

Tem uma nota sΓ³ com o que eu ainda nΓ£o sei, porque o estudo Γ© pequeno, vem de poucos projetos e ninguΓ©m de fora conferiu. E tem um passo a passo para repetir a medida no seu projeto.

"Jardim digital Γ© um site de notas ligadas entre si, que o autor continua cuidando com o tempo. Ele aceita nota inacabada e mostra isso, com um selo de quanto cada uma estΓ‘ provada."

Se quiser olhar: Digital-Garden

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.