A heuristic is anything that provides a plausible aid or direction in the solution of a problem but is in the final analysis unjustified, incapable of justification, and potentially fallible.
As we spend more time reading code than writing it, we’d like our code to be glanceable. By glancing at the code, we want to quickly understand its intent. Glanceability is a useful property, for production code as well as test code. Test code is there to help us out, so being able to quickly grasp what the test is about will help future us, and others, keep our tests habitable.Read More
How do I structure my tests, so that they are understable and focused on the behaviour of the system under test? Given-When-Then and Arrange-Act-Assert are two similar ways of structuring your test cases to make them easier to understand at a glance. This test structure also helps to keep your test focused on a single concern.Read More
We do not like long test scenarios with loads of different asserts. A test case that has many expectations is difficult to understand when it fails. We then have to dig inside the test’s implementation to see what exactly went wrong where. Before we know it, we fall in to a lengthy debugging session.Read More
Marc Eversconsulting developer
Willem van den Endedeveloping consultant
Rob Westgeestdeveloping developers
Talk to us
We’re feedback addicts...let's start a conversation!
+31 6 44 55 000 3 (Marc)
+31 6 457 76 328 (Rob)
+44 743 8651 672 (Willem)
5081 BS Hilvarenbeek
3438 MD Nieuwegein
Bath BA1 5EB