Unit Tests - from waste to asset  [Pinned]

Have you ever doubted that Unit Tests are worth the effort? Or have you had a feeling that you can’t rely on them in terms of quality? It might be because you’ve been exposed to so-called “London School” of writing tests. This text is my attempt to summarize and draw conclusions from the pragmatic approach to Unit Tests and TDD presented in the best resources I could have found. Goals vs reality Let’s start with some promises Unit Tests and TDD made: ...

A TDD journey with the Coding Challenge #12

This text is an introduction to TDD that shows a step-by-step attempt to solve a real programming task - the Coding Challenge #12 - Build Your Own URL Shortener. In short, we will build a web application that accepts a custom url under /api/shorten?url=<url>. Such a call will return a short key that can be used later when the user browses to /<key>. This action will redirect the user to the original <url>. ...