<?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 Tyler Murry on Medium]]></title>
        <description><![CDATA[Stories by Tyler Murry on Medium]]></description>
        <link>https://medium.com/@tylermurry?source=rss-1f9cffec6204------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*V32wiDknzocKEv3HBx5Yjw.jpeg</url>
            <title>Stories by Tyler Murry on Medium</title>
            <link>https://medium.com/@tylermurry?source=rss-1f9cffec6204------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:48:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tylermurry/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[Feature Toggling: A Brief Guide]]></title>
            <link>https://medium.com/@tylermurry/feature-toggling-a-brief-guide-744c047b747e?source=rss-1f9cffec6204------2</link>
            <guid isPermaLink="false">https://medium.com/p/744c047b747e</guid>
            <category><![CDATA[feature-toggles]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[feature-toggling]]></category>
            <dc:creator><![CDATA[Tyler Murry]]></dc:creator>
            <pubDate>Wed, 15 Jan 2020 16:58:59 GMT</pubDate>
            <atom:updated>2020-01-15T16:58:59.388Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mc6_nNFM3Yi3chRBD9W0Dw.png" /><figcaption><a href="https://unsplash.com/@nicknice?utm_medium=referral&amp;utm_campaign=photographer-credit&amp;utm_content=creditBadge">C</a>redit: Nick Nice hosted on <a href="https://unsplash.com/photos/3aMTRTXKdR8">Unsplash</a></figcaption></figure><p>Today, most applications are deployed and released at the same time. Meaning, when a new binary is put on a server, all users get the new functionality immediately. For mature products, this is rarely a desirable outcome. Indeed, it may be bugs that those users get immediately instead. Instead, the product owner likely prefers a deliberate release to increasingly larger groups until adequate confidence is gained for a general release. This exactly what feature toggles were made for.</p><p>There are other benefits of toggling, but let’s first cover one big downside. Far and away, the number one problem is the amount of “developer touch” required to maintain toggles. It’s quite possible for toggles to be complex enough in their scope that they require serious design to implement. This is a real tradeoff that every product owner must be aware of and work closely with their architect to account for.</p><p>That being said, there is fruit to be plucked from this tree if you’re willing to tend the soil. The intent of this guide is to cover a few best practices and callout known pitfalls to ensure it’s the smooth experience we all want it to be.</p><h3>What is a feature and why should I toggle it?</h3><p>This is a great question with lots of answers. After all, a feature could be as small as the “Remember me” button on login or as large as adding automated invoicing for carriers. The good news is that we don’t have to agree on the definition. Even better, it’s likely your team already has a definition!</p><p>The important question though, is when does a feature get a toggle? Should you toggle everything? Just the big things? Consider this feature: “Require multi-factor authentication for user login”. The actual surface area of this change might be relatively small compared to other, larger business initiatives. However, a mistake with this feature will have a dramatic effect on the users’ ability to interact with your product. Whether this type of functionality should be toggled or not is specifically the type of decision a product owner should be making. Indeed, every new feature on the backlog should be weighed against the product owner’s rubric for quality and toggled accordingly.</p><h4>Takeaways</h4><ul><li>No matter how you define a feature, not every feature needs a toggle.</li><li>Product owners are solely responsible for deciding what features need toggles.</li></ul><h3>Lifecycle</h3><p>Perhaps the most important aspect of a toggle is its lifecycle. We’ve touched on the creation of toggles but what about removing them? Without proper attention, it’s easy for a product to suddenly have lots of stale toggles in the code base. Feature toggles are technical debt by definition and should be treated as such. Therefore, the solution is not unlike any other bug: put a work item on the backlog to represent removing the toggle. If regular grooming is taking place, the product owner will be regularly reminded of the toggle’s existence and should prioritize its removal the moment the feature is fully rolled out. You may even consider creating an expiration date with regular reminders as an extra layer of protection.</p><p>In short, treat toggles like the milk in your fridge. After a while, it’s going to go bad and if you don’t take it out none of your friends will want to come over 🤷‍♂‍</p><h4>Takeaways</h4><ul><li>Treat toggles like technical debt and remove them the <em>sprint after</em> they are fully rolled out.</li><li>Create work items to physically represent the creation and removal of every toggle to ensure it’s tracked.</li></ul><h3>Scope</h3><p>It’s common for larger features to have a broad impact on the product. This means the toggle implementation may be equally as broad. Therefore, each microservice and user-interface should be examined for relevance — otherwise, the releasability of the feature may be compromised. For complex features, this can be difficult to design and implement so a good execution plan is critical.</p><p>Additionally, while it’s true that the implementation of a toggle lives in an application, the toggle itself is tied to the product. This is a very important distinction to enforce among the team. It’s easy to slip here and sneak a toggle in that only applies to the application, but that’s a misuse of this concept. If the product owner is managing the lifecycle, hopefully this anti-pattern is limited.</p><h4>Takeaways</h4><ul><li>Features toggles are for products, not applications.</li></ul><h3>Summary</h3><p>Feature toggles are a powerful tool for developing and releasing robust products. Left unchecked however, toggles can add friction and complexity to the codebase, eventually doing more harm than good. With all that said, do consider feature toggles for your product — just make sure you’re aware of the tradeoffs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=744c047b747e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Test your mobile app offline for lightning fast, reliable automation]]></title>
            <link>https://medium.com/@tylermurry/test-your-mobile-app-offline-for-lightning-fast-reliable-automation-ec579d007dd7?source=rss-1f9cffec6204------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec579d007dd7</guid>
            <category><![CDATA[mobile-testing]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Tyler Murry]]></dc:creator>
            <pubDate>Sat, 04 Aug 2018 11:34:19 GMT</pubDate>
            <atom:updated>2018-08-04T16:30:20.352Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*N7EJJQXMfQWHZww8" /></figure><p>Creating an end-to-end test with projects like <a href="https://www.seleniumhq.org/">Selenium</a> and <a href="http://appium.io/">Appium</a> can sometimes feel like pure magic. Not only do they engage your app in the same way users do, but they greatly simplify complex actions into a user-friendly API.</p><p>Unfortunately, testing with these frameworks can be unreliable at times. How many times have you spent hours crafting a beautiful set of tests only to have them fail for a reason that has nothing to do with the app?</p><ul><li>Maybe your automator missed a character when typing text into a box?</li><li>Maybe the app ran slowly on a crowded VM and lapsed the automator’s timeout period?</li><li>Maybe one of the services your app uses was down?</li></ul><p>We have all experienced this flakiness before.</p><p><em>Flakiness is the number one enemy of E2E tests.</em> After all, if you can’t rely on the integrity of your tests, what <em>can</em> you rely on?</p><p>I would like to specifically cover unreliable services and a technique you can use to mitigate them.</p><h3>The true cost of reality</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*3F1aKlKYaCM4ALHlXkONWg.png" /></figure><p>When designing an end-to-end test, the most important step is to establish the <em>scope </em>of the test. That is, what are the <em>ends </em>in your end-to-end test. This one seems be obvious — <em>Just include everything the application touches. </em>Not so fast.</p><p>System complexity often acts like a “technical fog” that prevents us from seeing how costly it will be to draw a boundary line here rather than there. Even worse, that cost can be dramatic depending on how complex the system actually is.</p><p>For example, let’s say we’re testing an e-commerce application that hits a backend service to process the transaction:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*JXus-tiOI7qjL_U8Ob1XrQ.png" /><figcaption>Test scope of application</figcaption></figure><p>On first blush, defining the scope here is trivial. Spin up your application, spin up the service and you’re ready to roll. Upon closer examination, reality starts to take shape.</p><p>It turns out, the service uses a database to keep record of each transaction. Additionally, it relies on another service to validate the credit card which itself needs a database:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*D-aGFK-XWCpYd3ZtdfV0uA.png" /><figcaption>Test scope with 2nd-order resource interactions</figcaption></figure><p>In reality, most enterprise topologies are <em>far</em> more complex than this example.</p><p>Let’s say we acknowledge all of this and still want to bite the bullet. This means we’re going to need a realistic environment stood up for our test. Traditionally, this would place us somewhere on the following spectrum:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*tvWYknfXvE0VNp9TM_nkWw.png" /><figcaption>Static ← → Dynamic Environments</figcaption></figure><p>We might even be justified to think of this as a continuum instead. That is, static environments were simply the first evolutionary step towards being dynamic generated.</p><p>While I don’t think either of these perspectives is wrong, there is a third dimension I would like to introduce: <strong>No environment</strong>.</p><h3>The case for no environment</h3><p>Simply put, testing without an environment means using locally provided mock data instead of hitting the actual service within your app.</p><p><em>But why? Won’t my data just go stale if the something changes?</em></p><p>In a word, yes. But all design patterns are a exercise in tradeoff selection and I’d like to walk through the pros, cons and my personal experience with this approach:</p><h4>Advantages</h4><ul><li>Eliminate service-based flakiness</li><li>Run independent tests on multiple devices in parallel</li><li>Full control over response data (ex. simulate 404 without bringing down the server)</li><li>Lightning-fast test case execution</li></ul><h4>Disadvantages</h4><ul><li>Possibility of stale data</li><li>No physical http interaction is tested</li></ul><h3>Story Time</h3><p>Like a lot of large companies, the one I work for has a lot of complex legacy applications and services. When it comes time to execute our tests, it can be very challenging to quickly generate test data, let alone automate this process.</p><p>Specifically, I do mobile development where there is a wide variety of devices our app needs to run on. In the past, manually testing on each device was the only the only way to validate before a release. I shouldn’t need to explain what a huge risk this was to the speed and quality of our delivery pipeline.</p><p>Recently, we decided to re-write our app in <a href="https://facebook.github.io/react-native/">React Native</a> which presented a great opportunity to re-imagine how we tested our apps.</p><ul><li><strong>The Goal:</strong> Validate our application nightly using a test cloud of real devices.</li><li><strong>The Problem: </strong>Because our app modifies the backend data while running the test, the data is not reusable. This means, if we wanted to run a test on five different devices in parallel, we would need to generate five sets of data. Every night. Generating this test data manually is just not a realistic option. What’s more, the legacy nature of our applications makes even automating test-data creation a time-consuming, costly and unreliable process. Ultimately, these barriers prevent us from even starting to solve the original goal: making sure our <em>application</em> flow works.</li><li><strong>The Solution: </strong>Instead, we decided to take our tests completely offline by mocking up the data. The approach sounded good, but we immediately knew we would need a tool to help us capture, organize and replay http calls without our application.</li></ul><p>Thus, <a href="https://github.com/tylermurry/tundra-cli">Tundra</a> was born.</p><p>I’ll go more in-depth in a future article, but the short version is that Tundra allowed us to <em>automate our automation </em>which completely revolutionized how quickly we could create and run our applications test cases.</p><p>Of course, it’s not without its disadvantages, so let’s talk about how to deal with them.</p><h3>Mitigating the risk</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*wVtrLEw6-HCaxsXShOuQqQ.png" /></figure><h4>Stale Data</h4><p>Stale data will inevitably happen as services change. That doesn’t mean you have to be caught off guard. Instead, let data rehydration become a regular part of your application’s maintenance. There are two ways this can be done:</p><ul><li><strong>Manually</strong> — Every so often, run all your tests against the real services and compare the results with your original captures. So long as you are true to the process used to generate the original, this is the best way to ensure your test data is up to date.</li><li><strong>Automatically</strong> — Depending on your organization, it may be possible to use a just-in-time approach to rehydration. First, create a map between the endpoints your application uses and the application that owns the endpoint. Then, subscribe to your change management system to generate a list of services that need to be re-evaluated. Manually test these cases to ensure test data has not been changed.</li></ul><h4>Http Interactions</h4><p>In my experience, testing without the physical http interaction rarely produces a surprise. Most, if not all test failures will be around the data coming back from the server and <em>not</em> the network layer. In short, testing your app offline will provide more benefits beyond what you <em>may</em> catch testing the network layer.</p><h3>Summary</h3><p>Test automation is one of the most important investments you can make when building an enterprise-ready app. <em>In a world full of choices,</em> <em>consumers simply don’t have time for apps that don’t work</em>.</p><p>Using offline test data won’t be without risks. However, if used wisely, it can significantly increase the speed and reliability of your tests.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec579d007dd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>