Jim Lynch Codes
  • Blog
  • About Jim

Writings about one coder's stories & experiences.

Describe's Full of It's T-Shirt

4/4/2016

0 Comments

 
I found myself working at a place where they didn't appreciate unit testing. Worse, there were developers there who didn't even know what unit testing was! It can be very intimidating for people who are new to unit testing regardless of how much general software development they've had in the past. These days I find myself working with mostly AngularJS developers. I wanted to boil it down to something people could latch onto. A phrase that describe's (no pun intended) exactly what a spec.js file is. And so I cam up with this quote:
​ 
"Describe's full of it's with some beforeEach's."

That all a suite of unit tests is, really- just a describe statement, filled with some it statements, and usually one of two beforeEach statements.  This is the Jasmine and chai/mocha syntax for writing unit tests. Once new developers realize this they can then proceed to write a trivial test with all the parts (something like expect 1 + 1 to be 2) and fire up their test runner. Now they've crossed into the land of unit testing. They went from not even knowing where to start to now asking about how to inject services, make mocks, and run only subsections of tests. It's amazing seeing the speed at which programmers progress in their unit testing understanding once they can grasp this one simple phrase: Describes full of it's with some beforeEach's. 

The Birth of a T-Shirt

This phrase was so popular and well-accepted by developers in the community that I decided to make it a t-shirt. Yep, I whipped out my Adobe Illustrator skills and and blessed the world with my talents (joking). I wear this t-shirt all the time but especially when I need to buckle down and write a lot of unit tests. I also like to give these out as prizes / volunteer rewards when I'm giving coding talks.
Picture
Picture

Feel free to support me buy purchasing this t-shirt from tee public in black text or white text! thanks! :)
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    ​Author

    Picture
    The posts on this site are written and maintained by Jim Lynch. About Jim...
    Picture
    Follow @JimLynchCodes
    Follow @JimLynchCodes

    Categories

    All
    Actionscript 3
    Angular
    AngularJS
    Automated Testing
    AWS Lambda
    Behavior Driven Development
    Blockchain
    Blogging
    Business Building
    C#
    C / C++
    ClojureScript / Clojure
    Coding
    Community Service
    CS Philosophy
    Css / Scss
    Dev Ops
    Firebase
    Fitness
    Flash
    Front End
    Functional Programming
    Git
    Go Lang
    Haskell
    Illustrations
    Investing
    Java
    Javascript
    Lean
    Life
    Linux
    Logic Pro
    Music
    Node.js
    Planning
    Productivity
    Professionalism
    Python
    React
    Redux / Ngrx
    Refactoring
    Reusable Components
    Rust
    Security
    Serverless
    Shell Scripting
    Swift
    Test Driven Development
    Things
    TypeScript
    Useful Sites
    Useful Tools
    Video
    Website Development
    WebStorm
    Writing

    Archives

    March 2023
    August 2021
    February 2021
    January 2021
    October 2020
    September 2020
    May 2020
    April 2020
    February 2020
    January 2020
    December 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015

    RSS Feed

  • Blog
  • About Jim
JimLynchCodes © 2023