<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Hot Chocolate GraphQL on Coffee-Driven Development</title>
    <link>https://duijzer.com/tags/hot-chocolate-graphql/</link>
    <description>Recent content in Hot Chocolate GraphQL on Coffee-Driven Development</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>© {currentYear}, Jacob Duijzer. All rights reserved</copyright>
    <lastBuildDate>Wed, 12 Feb 2025 16:01:27 +0100</lastBuildDate>
    <atom:link href="https://duijzer.com/tags/hot-chocolate-graphql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Testing GraphQL with Specifications: A Deep Dive with Reqnroll</title>
      <link>https://duijzer.com/posts/testing-graphql-with-specifications/</link>
      <pubDate>Tue, 28 Jan 2025 00:00:00 +0000</pubDate>
      <guid>https://duijzer.com/posts/testing-graphql-with-specifications/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://graphql.org&#34;&gt;GraphQL&lt;/a&gt; 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.&lt;/p&gt;&#xA;&lt;p&gt;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?&lt;/p&gt;&#xA;&lt;p&gt;After some experimentation, I found a solution I’m excited to share: combining specifications with &lt;a href=&#34;https://reqnroll.net/&#34;&gt;Reqnroll&lt;/a&gt;, the .NET &lt;a href=&#34;https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-9.0&#34;&gt;WebApplicationFactory&lt;/a&gt;, and the &lt;a href=&#34;https://chillicream.com/docs/strawberryshake/v14&#34;&gt;Strawberry Shake GraphQL client&lt;/a&gt; to test a &lt;a href=&#34;https://chillicream.com/docs/hotchocolate/v14&#34;&gt;Hot Chocolate GraphQL server&lt;/a&gt;. This approach not only works seamlessly but also results in clean, readable specifications.&lt;/p&gt;&#xA;&lt;p&gt;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!&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
