Open ThePrimeagen opened 9 years ago
Michael Paulson is a native Montanan, MSU alumni, and a Sr. Software Engineer at Netflix where he spends his time developing libraries for TV, Website and Mobile. The majority of Michael’s work has been in javascript, primarily focusing on the data layer between the front-end and middle-tier.
Abstract
“Code coverage is a bad metric for software quality” - no one.
Code coverage and I had a DTR (define the relationship), and it was not pretty. As in any direct relationship, when my code coverage rose so did my confidence. Unfortunately, time and time again I found myself disappointed when even with 100% coverage bugs crept in. I realized my relationship was dysfunctional because I wrote my tests based on the uncovered code. This led me down a dark path of creating tests that were using public methods to test internal implementation details.
This talk is about how I changed my testing approach and why coverage as a metric does not guarantee software quality.