I've used tests similarly when designing APIs, partly to subject myself to my API's UX flaws.
I write mostly functional/integration tests[1]. I try to avoid needing unit tests by making mistakes/errors of that sort impossible by construction (types).
I write mostly functional/integration tests[1]. I try to avoid needing unit tests by making mistakes/errors of that sort impossible by construction (types).
Good post.
[1] https://github.com/bitemyapp/bloodhound/blob/master/tests/te...