unit testing code that uses third party libraries

In the year 3000, our libraries will come with verified-equivalent implementations of their APIs that users can use to unit test their code, when the normal implementation is inappropriate.

Our libraries will also have thorough documentation on how to unit test code that interacts with them.

2 comments:

MichaƂ Pasternak said...

When is the normal implementation inapropriate?

Christopher Armstrong said...

Haven't you ever used a test double? Learn some unit testing, man!

Public Internet communication, root privileges in the host OS, etc.