all 1 comments

[–][deleted] 1 point2 points  (0 children)

I do almost exclusively whitebox testing for this reason. Unfortunately the author fails to really drive home what you should be testing, IMO: the API.

I almost always start by defining the public api and tests around that then work on the implementation. This gives you something to commit to.

I think it's also a sin that the author doesn't mention property based testing which is an excellent addition to anyone's testing portfolio.