Coffee-Driven Development

Brewing Thoughts for Better Code and Stronger Teams

Testing GraphQL with Specifications: A Deep Dive with Reqnroll

January 28, 2025 Testing

GraphQL has been around since 2012, yet many developers haven’t had the chance to work with it. Personally, I’ve been using GraphQL on and off for several years, both in personal and professional projects. Recently, I’ve been diving deeper into it again—and I’ve fallen in love with it all over.

While implementing a few queries and mutations, I started to wonder: how could I effectively test my GraphQL implementation? Specifically, how could I send queries and mutations with a GraphQL client directly from my tests to ensure everything works as expected?

After some experimentation, I found a solution I’m excited to share: combining specifications with Reqnroll, the .NET WebApplicationFactory, and the Strawberry Shake GraphQL client to test a Hot Chocolate GraphQL server. This approach not only works seamlessly but also results in clean, readable specifications.

In this article, I’ll guide you through the process of setting up these tests, allowing you to test your own GraphQL server with clarity and confidence. Let’s get started!

Continue reading

DevOpsDays Eindhoven 2023

October 16, 2023 Conferences Devops

It was on my radar last year, but I decided not to go, but to go to Techorama instead. But, after hearing good stories about the first edition of the DevOpsDays Eindhoven, I decided to skip Techorama and go to the DevOpsDays Eindhoven 2023.

In this post, I will explain what the DevOpsDays are, and share some of my learnings. I hope you will enjoy it and, maybe, I might inspire you to join me next year!

Continue reading

Better Value Sooner Safer Happier, a review

April 20, 2023 Agile

Yesterday, I attended a session, presented by Jonathan Smart, on the topic of “Better Value Sooner Safer Happier” which was based on his book “Sooner Safer Happier”. The author’s approach is based on Lean, Agile, and DevOps principles, which have been adopted by many organizations worldwide, but with a strong focus on outcome, not on any process like Scrum, DevOps or Scaled Agile. In this review, I will share my key takeaways, I will not share his full talk, you can read the book and find some videos online.

Continue reading
Newer posts