<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sam Maryland on Medium]]></title>
        <description><![CDATA[Stories by Sam Maryland on Medium]]></description>
        <link>https://medium.com/@sam.maryland?source=rss-6d8562668a34------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kYbdsOWWrgYcLCCEE44nSQ.jpeg</url>
            <title>Stories by Sam Maryland on Medium</title>
            <link>https://medium.com/@sam.maryland?source=rss-6d8562668a34------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:25:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sam.maryland/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Dockerized Dev Testing: Chick-fil-A Delivery’s Shift-Left Strategy for Ensuring Quality]]></title>
            <link>https://medium.com/chick-fil-atech/dockerized-dev-testing-chick-fil-a-deliverys-shift-left-strategy-for-ensuring-quality-8a2a27080ec6?source=rss-6d8562668a34------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a2a27080ec6</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[cicd]]></category>
            <dc:creator><![CDATA[Sam Maryland]]></dc:creator>
            <pubDate>Tue, 22 Oct 2024 14:02:15 GMT</pubDate>
            <atom:updated>2024-10-22T14:02:15.450Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tRysD8ilRveE5rXYFBvWMg.png" /></figure><p>From the moment a customer places a delivery order in the Chick-fil-A app, to the arrival of a team member at their door, a complex series of steps unfolds, each with multiple options and considerations to ensure timely and accurate delivery. Our delivery drivers’ trips can vary heavily — one could be a classic Chicken Sandwich meal, the next could be a group order for eight customers, and the next could be delivering multiple customers’ orders before returning to the restaurant.</p><h4><strong>Our development cycle</strong></h4><p>Our development cycle for Chick-fil-A delivery was fairly simple, but certainly not fool-proof. A feature would be requested and requirements made, a meeting would be held to identify and list testing scenarios for the feature, and a software engineer would begin implementing the feature while a quality engineer would develop the integration tests. Once the feature implementation was approved and deployed to our testing environment, the integration tests would run and only then would we know — <em>“…does this thing work?” </em>With the obvious disconnect between engineers focusing on the separate tasks, inevitably, <em>it usually did not work</em>, and the process would restart.</p><p>In our testing environment, we have a finite number of Chick-fil-A test restaurants with set configurations that are utilized across teams to achieve testing goals. The first step for our team was claiming a few of these locations to use exclusively for testing Chick-fil-A delivery, but there were still configuration tweaks needed between test runs to sufficiently validate our platform. The resource constraints limited us to only run a single test per-location at a time since we needed a clean-slate location with no drivers and no orders to effectively set up our test scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*hTsY22uS-lsGnyE7Aaw2mw.png" /></figure><h4><strong>The problem</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wc30955eMnYD541idWQQUg.png" /><figcaption><strong>The issues with our development process</strong></figcaption></figure><p>Our previous development process had slow feedback loops because we couldn’t validate changes until they reached the testing environment. This shared environment resulted in an unreliable test suite that rarely (if ever) fully passed. As a result, the test suite took hours to complete, broken services were constantly deployed to our test environment, and deployments to production always carried uncertainty. Manual testing, conducted in the same environment as automated testing, was often necessary but didn’t provide full confidence in regression coverage. This raised concerns about how effectively we covered all edge cases in our regression tests.</p><h4><strong>Identifying the issues to find solutions</strong></h4><ul><li><strong>Isolate testing to the delivery platform. </strong>As our original test suite expanded and became more complex, we realized a lot of our setup and validation revolved around other teams’ services. Whether it was logging into the customer app, selecting a delivery address, selecting menu items to place in the order, or payment, there was a multitude of points of failure before a delivery order ever made it into our fulfillment flow. <strong>Our new solution needed to be able to quickly and efficiently submit Chick-fil-A delivery orders without failing because of something we couldn’t control.</strong></li><li><strong>Validate changes early. </strong>Previously, the earliest we could catch issues was after deploying the new service to our testing environment. <strong>Our new solution needed to validate changes to the service before deploying to a shared environment, aiming to catch issues before the service is merged into our repository.</strong></li><li><strong>Parallelize test suite. </strong>We relied on a set pool of emulator locations we could execute our tests on, as well as long-term test drivers used in the tests. <strong>Our new solution needed the flexibility to dynamically create a customizable, segmented test bed including locations, drivers, and orders per-test, allowing us to parallelize our suite.</strong></li><li><strong>Test-driven development. </strong>In the past, one engineer worked on the automated tests for a feature while a separate engineer worked on the feature implementation, resulting in consistent test failures, miscommunication, and frustration from a long feedback loop. <strong>Our new solution needed to support a single engineer writing out the automated tests at the same time as the feature was implemented.</strong></li></ul><h4><strong>Our new approach</strong></h4><p>Faced with these challenges, we embarked on a journey to revamp our integration testing process completely.</p><p>1. <strong>Containerized test environment.</strong> To ensure consistency and reproducibility, we containerized our entire testing environment using Docker.</p><ul><li>This allows us to spin up a fresh, isolated instance of our delivery microservices for each test run, eliminating the inconsistencies and conflicts that plagued our previous setup.</li></ul><p>2. <strong>Isolated and efficient testing.</strong> We embraced a microservices approach to testing, leveraging tools to isolate our delivery platform from external dependencies, such as:</p><ul><li><a href="https://www.localstack.cloud/"><strong>LocalStack</strong></a><strong>:</strong> With LocalStack, we run a lightweight version of AWS services locally within our testing environment, removing the need for actual AWS resources.</li><li><a href="https://smocker.dev/"><strong>Smocker</strong></a><strong>:</strong> To eliminate reliance on external services, we employed Smocker, a powerful HTTP-based mocking tool. Smocker has solved our resource-constraint problem by enabling us to create and tear-down Chick-fil-A delivery orders and locations just by seeding a few mock responses.</li><li><a href="https://launchdarkly.com/"><strong>LaunchDarkly</strong></a><strong>:</strong> To easily manage different restaurant configurations and feature flags, we integrated LaunchDarkly into our testing process. This gives us the flexibility to test various scenarios without manually changing configurations.</li></ul><p>3. <strong>Streamlined test development.</strong> We shifted away from cumbersome testing frameworks with rigid structures like “Given, When, and Then.”</p><ul><li>Our new integration tests resemble unit tests in their clarity and conciseness.</li><li>This code-centric approach empowers developers to write tests alongside feature development, fostering a tighter feedback loop and catching bugs earlier in the development cycle.</li><li>As developers work on a feature, they can easily launch all microservices and infrastructure, then run the full integration test suite with a single command.</li></ul><p>4. <strong>Shift-left testing.</strong> With this new approach, testing becomes an integral part of the development process from day one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TxGc5_FUUA4lXUCr1arIAA.png" /><figcaption><strong>Our new development cycle</strong></figcaption></figure><ul><li>Testing scenarios are defined as part of the initial feature ticket.</li><li>Engineers include integration tests in their feature pull requests, ensuring code reviews encompass both functionality and testability.</li><li>Integration tests are a step in the pull request checks. If the tests don’t pass, the pull request can’t be merged.</li></ul><h4><strong>Findings: The good</strong></h4><p>By adopting our new integration testing strategy, we have dramatically increased development speed and confidence. Developers can now verify that integration tests will pass before creating pull requests, ensuring their implementations meet business requirements from the outset.</p><p>The reliability of our tests has also improved significantly, as failures now indicate logic issues within the delivery microservices rather than external dependencies. This shift allows us to catch bugs earlier — both during development and before merging changes — leading to a marked increase in confidence when deploying to production. The time to run our test suite has decreased from approximately 2.5 hours to just 15 minutes, transforming our workflow and significantly enhancing our ability to deliver high-quality software efficiently.</p><p>With manual testing efforts for the back-end team nearly eliminated, developers take greater ownership and accountability for the quality of our services. They are empowered to write tests that reflect real-world business problems, bridging the gap between engineering and business needs.</p><h4><strong>Findings: Areas for growth</strong></h4><p>There are also areas that we think need improvement, like:</p><ul><li><strong>Test suite execution time:</strong> Even with parallelization, running our full suite of integration tests can still be time-consuming. We’re actively exploring strategies for optimization, such as selective test execution based on code changes.</li><li><strong>Maintenance of mocks and stubs:</strong> While tools like Smocker greatly simplify the process of mocking external dependencies, managing those mocks does require ongoing effort as APIs and services evolve.</li><li><strong>LocalStack configurations:</strong> LocalStack has been a game-changer for our team, allowing us to locally test AWS resources instead of using dedicated resources. We’re still working to identify the sweet spot for configurations like memory reservations.</li></ul><p>By honestly assessing our successes and areas for growth, we emphasized our commitment to continuous improvement. This journey of refinement ensures that our integration testing process remains effective in meeting the evolving demands of our platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a2a27080ec6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chick-fil-atech/dockerized-dev-testing-chick-fil-a-deliverys-shift-left-strategy-for-ensuring-quality-8a2a27080ec6">Dockerized Dev Testing: Chick-fil-A Delivery’s Shift-Left Strategy for Ensuring Quality</a> was originally published in <a href="https://medium.com/chick-fil-atech">chick-fil-atech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>