Jim Lynch Codes
  • Blog
  • About Jim

Writings about one coder's stories & experiences.

Tests: Nouns and Verbs from Kent Beck's TDD by Example

8/7/2016

0 Comments

 
I was on the beach in Atlantic City today reading an excellence tome a throwback from 2003(!). This book,  Test Driven Development by Example, was penned by Kent Beck himself.  In the first paragraph of chapter 25, "Test-Driven Development Patterns", he talks notes the difference between the word "test" and a verb and as a noun. 

Test, the Verb

The dictionary definition for the verb meaning of test is, "to evaluate". By this definition, everyone "tests" their code. When you make a change, you open it up and use it to make sure you didn't break anything, any if it looks good then you set it live! However, as Kent Beck notes, "Although you may test your changes, testing changes is not that same thing as having tests. Test is also a noun: a procedure leading to acceptance or rejection.  Chrome inspector console debugging, relying only on 'gulp serve' (or the equivalent with your favorite task runner), and having a department of manual testers are all examples of testing, the verb. What we are really after in TDD, BDD, and UGAT are the noun tests.

Test, the Noun

The noun form of tests is referring of course to automated tests. These are things that you can point at, you can hold them in a directory and execute them on a whim. There is still action involved and a ton of moving parts, but each test itself is a noun. Remember Kent Beck's definition of noun tests, "​a procedure leading to acceptance or rejection". The green tests should in theory lead you to acceptance of the code, NOT manual testing. You can still do exploratory testing but only to expose what tests you are missing! As a side note, tests that are nouns also lead to reports (also nouns) which you don't get with testing, the verb. Of course once you start using the noun form test of test enough, you might want to use "testing" to refer to running the tests. Try not to do this, as it can get confusing for everyone. It's unfortunate how many various forms the word "test" can take, and that's why I like to refer to them as just "automated tests" and get more specific if appropriate in the situation. So, keep all that in mind when you're developing, and good luck with your tests. :)
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...
    Follow @JimLynchCodes
    Follow @JimLynchCodes

    Want FREE access to
    my daily stock tips 
    ​newsletter called,
    "The Triple Gainers"?

    Sign up here!

    Categories

    All
    Actionscript 3
    Angular
    AngularJS
    Automated Testing
    AWS Lambda
    Behavior Driven Development
    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
    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

    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 © 2021