nrw.social ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Wir sind eine freundliche Mastodon Instanz aus Nordrhein-Westfalen. Ob NRW'ler oder NRW-Sympathifanten, jeder ist hier willkommen.

Serverstatistik:

2,9 Tsd.
aktive Profile

#tdd

1 Beitrag1 Beteiligte*r0 Beiträge heute

I like when someone goes back to the source and sets the record straight. I'm also fed up with people bashing mocks without actually giving any arguments against them.

The class is not the unit in the London school style of #TDD:

codesai.com/posts/2025/03/mock

CodesaiThe class is not the unit in the London school style of TDDSomos un equipo versado en Extreme Programming, ofrecemos desarrollo de software, formación, asesoramiento y apoyo en proyectos.
Fortgeführter Thread

In a way it’s similar to the people who generate #unittests for the code they’ve just written.

Nothing against those who have this big chunk of untested legacy code and happily see that #AI gives them a good starting ground of test cases.

But like with commit messages, unit tests can answer that WHY question about your production code. Why do we need that strange if branch? Oooh because of that edge case occurring in a given use case, tested by this test case over there. That’s something you can’t derive from your production code.

In #TDD, your test cases give your production code a reason to exist. In that sense, you’d be much better off to have AI generate the production code for your tests.