Unit and integration are ambiguous names for tests–and that’s ok

In my not-so-distant past I needed to write a component which would control an air conditioning unit.My application needed to send commands to the external device (on, off, set temperature) and read information from it (room temperature, humidity etc.)And so I came with the following:It’s a bit simplistic but the idea was that the client … Continue reading Unit and integration are ambiguous names for tests–and that’s ok

How to unit test “un-testable” code (in a nutshell)

Not being able to unit test an essential scenario is one of the reasons developers stop unit testing their code. In fact most of the time when a team decides not to use TDD (Test Driven Development) is because it seems as if they won’t be able to test the production code using unit tests. … Continue reading How to unit test “un-testable” code (in a nutshell)