Learning Testing Tools First
Oct 7 2016
Learning a new language or framework can be tough. It can be especially tough when you practice TDD. You need to write tests for code you don’t know how to write using testing tools that you don’t know how to use yet!
Naturally, this suggests that perhaps the first thing we should do when we encounter a new language or framework is to spend some quality time getting familiar with the testing tools.
Once we have some grasp on the testing tools, this facilitates the ability to experiment and learn about the language or framework via learning tests1.
For me, I find that I learn quicker by doing this sort of experimentation versus simply reading documentation.
My theory is that by spending some time focused on learning the testing tools first is that load required to start TDDing some production code can be reduced. This should shorten the time to getting a failing test that can be made green, and reduce the likelihood of writing the wrong test or an utterly incorrect test.
This is an approach that I would like to test out. I am planning to employ this technique the next I am faced with a new language or framework.
1. Learning Test is a pattern described in Test Driven Development: By Example