A Patronizing Guide to What Makes a Good Unit Test
Katherine Cox-Buday
katherine.cox-buday at canonical.com
Tue Mar 8 01:42:53 UTC 2016
Thanks for this, Michael!
My goto talk on unit tests is one Misko Hevery gave
<https://www.youtube.com/watch?v=wEhu57pih5w> for Google back in 2008
(32m long). Particularly interesting is the section at 7:27
<https://youtu.be/wEhu57pih5w?t=447> where he talks about the different
types of tests and why unit tests are the logical conclusion.
What I love most is it can be boiled down to 3 things to write testable
code. Keep these 3 concerns separate:
1. Instantiation
2. Composition
3. Business Logic
-
Katherine
On 03/07/2016 06:11 PM, Michael Hudson-Doyle wrote:
> Some of you will have seen this before... I found this talk I gave at
> the Launchpad Epic in 2010 and somewhat prompted by discussions in the
> onyx standup wrote it up as a medium post:
> https://medium.com/@mwhudson/a-patronizing-guide-to-what-makes-a-good-unit-test-fe895951ce35#.85hbmgmug
>
> I hope you find it interesting, and that it helps promote more focused
> conversations around test quality!
>
> Cheers,
> mwh
>
--
-
Katherine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20160307/00646ab9/attachment.html>
More information about the Juju-dev
mailing list