PodParley PodParley

#3 Developer Testing: The Legacy Code Dilemma, Modified Condition Decision Coverage, and Pairwise Testing

Episode 3 of the Inspect and Adapt podcast, hosted by Melvin Perez-Cedano, titled "#3 Developer Testing: The Legacy Code Dilemma, Modified Condition Decision Coverage, and Pairwise Testing" was published on November 5, 2019 and runs 35 minutes.

November 5, 2019 ·35m · Inspect and Adapt

0:00 / 0:00

Construx Senior Fellow Melvin Perez-Cedano and host Mark Griffin dive into developer testing in response to a recent engagement with a telecommunications client trying to improve quality and productivity. As developers, we know that we’re going to make mistakes. The point of developer testing is to discover those mistakes as early as possible so that we can remove them when it is far more economical to do so. Test-driven development (TDD) and behavior-driven development help here. Plus, writ...

Construx Senior Fellow Melvin Perez-Cedano and host Mark Griffin dive into developer testing in response to a recent engagement with a telecommunications client trying to improve quality and productivity.

As developers, we know that we’re going to make mistakes. The point of developer testing is to discover those mistakes as early as possible so that we can remove them when it is far more economical to do so. Test-driven development (TDD) and behavior-driven development help here. Plus, writing test cases first helps us clarify our understanding of what we need to do before we write the code. But the overall point is to decrease the gap in time between defect insertion and defect removal. Even testing after you write a function helps you in this regard.

The most common question in our developer testing engagements is this: How do we apply these techniques to the existing code that we have, to our legacy code that was not designed to be testable? Melvin describes how to change the future of this extremely valuable code. For example, minimize manual integration to minimize the risk of changes.

Melvin continues by describing a concept during the engagement that the attendees at first struggled with: modified condition decision coverage (MCDC). The technique provides a level of test coverage that is required when you’re building safety-critical software that requires high reliability. (This was appropriate for this engagement because the company is involved with self-driving cars.) Typically, across the industry, when 80% of line coverage is achieved, the testing is considered good, but this definitely isn’t always sufficient. MCDC vastly improves your coverage by testing every condition independently.

Our final topic today, which was of particular interest in this engagement, is how to test configurations with multiple factors: different network protocols, different operating systems, different databases, different UIs, etc. When you try to have complete coverage in this environment, the number of required test cases grows rapidly and the cost of testing increases similarly. Pairwise testing lets you provide wiser coverage when total coverage is likely impossible. The number of test cases is reduced significantly, but the crucial coverage is assured. To have strong confidence without investing half the project in testing, this method is invaluable.

35ish Podcast Ashley Bowne & Lisa Gomez Welcome to 35ish. Each week, Ashley Bowne and Lisa Gomez (friends since meeting freshman year in high school), tap into their shared gift of gab where together they inspect and reflect, to better connect with the world! They discuss all things timely and timeless from careers, friendship, marriage, kids, pop culture, fashion trends, books, television, travel, and mental health as they explore what it means to be 35ish. Join us for topics that are versatile and will make you smile! Support this podcast: https://anchor.fm/35ishpodcast/support #moldfinders: RADIO Brian Karr Get advice from mold expert, Brian Karr, on how to find and remove mold and mycotoxins from your home so you can get healthy again! Brian Karr is the Co-Founder of We Inspect and the Creator of #moldfinders:METHOD and Mold Masterclass. He has helped thousands of people across 5 different continents learn how to find and remove the hidden mold and mycotoxins that are making them sick. Anyone can be a #MoldFinder! Get ready to hear the secrets that have made him the go-to referral for mold doctors across the country to help their patients create homes that allow them to heal! Please get rid of that monkey on my back Onetony Leone Objectives are to expand and inspect the addiction world and all it concernsAddiction world. I'm going to change the perspective I'm tired of accepting limited selfish regard of a tragic reality.. Believe me friends Speculum Alyssa Zucchet Join canadian medical student, soon-to-be-doctor, Alyssa Zucchet, as they open up and inspect the most sensitive topics in medicine. From sexuality to substance abuse, we're going to talk with health care professionals about normally uncomfortable conversations, and see how we can make the world a less awkward place.
URL copied to clipboard!