MutterCorp
MutterCorpNotice · Notícias
Programação·

I broke our price code 35 ways and 26 were caught: the nine survivors, and the one that moves a price by seven shekels

We have 159 passing tests around the module that turns a pound price into a local price. "Passing" tells you the tests agree with the code. It does not tell you they would notice if the code changed. So I changed the code on purpose, 35 times, and counted how often the suite complained. This is mutation testing without a framework. No Stryker, no config. A 60-line Node script that swaps one expression in lib/pricing/display-currency.ts, runs the pricing and billing tests, records pass or fail,…

Publicado no Notice. Categoria: Programação.

Notícias sobre o mesmo assunto em outras fontes