Sharing Tests and Generating Tests in Scala

I have written before about how I like an automated test to test only one thing, have one clear assertion, and have a descriptive name that reads like a checklist item in a specification that can be understood by someone who is not a programmer, like a product manager. This…

An Interview as a Listening Session

In my last article, inspired by Indi Young's book Practical Empathy, I proposed that we might expand the thinking and effectiveness of our organizations by developing empathy during a technical interview, through what Indi calls a dedicated listening session. In this article, I will explore what this technical interview might…

Practising Empathy in Technical Interviews

I would like to propose an experiment for improving the effectiveness of technical interviews: developing empathy for the candidate through a dedicated listening session. Previously, I shared my thoughts on incorporating code review in technical interviews as a means of developing empathy, to increase the effectiveness of the interview and…

Encapsulating More than Just Resources with Test Context Classes

In my last article, I explored automatic resource management in Scala by developing test context classes to reliably manage resources in functional tests. I have explored the topic of test context classes a few times, and each time I focused on using these classes purely for resource management. In this…

Automatic Resource Management in Scala: Revisiting Test Context Classes

I have written previously about how I like to use what I call call context classes for functional tests in order to encapsulate test setup, reliably cleanup resources at the end of a test, and to promote code reuse across tests. I started by writing about using disposable objects for…

Should We Write a Unit Test or an End-to-End Test?

The debate over whether to write a unit test or an end-to-end test for an aspect of a software system is something I've encountered a number of times. It most often arises as a philosophical discussion along the lines of: If we can only write one test for this feature,…