All Posts

  • Using tag functions for pattern testing XML

    You are tasked with building a testing API that allows a nice and clean way to test XML patterns. The API should be able to test XML patterns in a way that is easy to read and understand.

  • Using given-when-then in testing

    What I like about given-when-then is that you can deduce the ā€œstate treeā€ just from the test structure and, implicitly, from the terminal output. This is surprisingly helpful when practicing TDD (Test-Driven Development).

  • Typesafe method name when testing

    First, letā€™s say we have the following code structure: