News for hackers. Stuff that matters.
Re:Questions to ask yourself when writing tests by twic on Wednesday January 03, 2018 @02:34PM (#16064259)
> You really need a healthy testing pyramid.

I don't think you do. I think a testing pyramid is a sign of an unhealthy approach and an unhealthy codebase.

I think what you need is a testhenge. For those who aren't familiar with henges, here's a typical (although poorly maintained) one:

http://www.english-heritage.org.uk/remote/www.english-herita...

Rather than being massive at the bottom and then getting thinner as it goes up, there is a continuous band around the top, covering everything, supported by uprights that dive deeper down, just where needed.

That is, you need a layer of high-level tests for everything (for a web application, some mix of browser tests or controller-level integration tests), along with component-level integration tests and isolated unit tests for the bits of the system that are particularly risky (complex, error-prone, critical, new, old, etc).

There are no comments on this comment yet.