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:
0 Comments
The first step in refactoring is to build a solid set of unit tests around the code you want to refactor. In the timeless book "Refactoring" by Martin Fowler says this under the heading The First Step in Refactoring :
Inspired by Effective Unit Testing: A Java Developer's Guide, I wrote this post about unit testing and my previous programming experiences without it. Instead of double posting it, I'll just leave the link to the original post here.
Original Linkedin Post: https://www.linkedin.com/pulse/poking-fun-poke-run-alternative-unit-testing-jim-lynch?trk=prof-post I've never met Tao Xie, but I know that he is (or was) a professor at the University of Illinois. He has put together a fantastic collections of links to site and old courses regarding unit testing and software development.
I'm getting back into video tutorials! This one covers the classic Fizzbuzz coding kata. Here I do it with a TDD (Test Driven Development) approach, starting with the unit tests and following the red-green-refactor cycle. Enjoy!
|
AuthorThe posts on this site are written and maintained by Jim Lynch. About Jim...
Categories
All
Archives
March 2023
|