2 Star 0 Fork 0

mirrors_jsantell / 2013.cascadiajs.com

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
code-coverage-like-a-boss_geekdave.md 4.06 KB
一键复制 编辑 原始数据 按行查看 历史

#Code Coverage (Like a Boss)

##Abstract

Code Coverage tools can prove to be invaluable resources in software projects large and small. But just like putting a hammer in your toolbox won't build you a safer house, Code Coverage tools will do little for you on their own, without a process to follow.

In this talk, you'll learn:

What's All This, Then?

Confused about the difference between line coverage, statement coverage, function coverage, and branch coverage? How about pre-instrumented source vs. on-the-fly instrumentation? What the heck are Istanbul and Blanket? Here's a crash course in Code Coverage tools & methodology, and a summary of the current lay of the land in the JavaScript world.

Bossy Code Coverage

Code Coverage is meaningless if it's not enforced. But nobody likes being the one who chronically nags their teammates. By automating the process of enforcing a minimum coverage threshold, this responsibility is passed on to a robot. We'll look into using Grunt to handle this task, and how you can configure a solution that runs on popular CI frameworks like TravisCI and Jenkins. Over time, this process can change the culture of teams to a "test-first" mindset.

Lies, Damn Lies, & Statistics

Now that you love Code Coverage, find out how your tool's statistics are lying to you. It's easy to get a false sense of security based on coverage percentages. Whether intentional or not, there are many ways that developers can manipulate the system to produce misleading coverage statistics. Luckily, there are a few simple strategies that can mitigate this issue, and keep your numbers honest.

The Zen of Coverage

How much coverage is "good enough"? 50%? 75%? 90%? Just as a Zen master lives in a constant pursuit of enlightenment, so must we never cease to pursue better code coverage. But is it really about the numbers? Learn why chasing a high coverage percentage is a bad strategy, and how to explain that to your number-oriented boss.

Feature Coverage FTW

Code Coverage serves as a great "fail safe" for catching untested or under-tested code. But it does nothing to ensure that the tests we write are actually meaningful. To accomplish this, we need actual human brains, eyeballs, and conversations. Learn how to implement a "Feature Coverage" process as an essential companion to Code Coverage, and how this will instill harmony in your team between Product Managers, QA, and developers.

##Speaker Bio

geekdave

Dave works from the mountains of Colorado as the lead UI Architect for Model N, Inc. He describes solving complex coding problems as "pulling splinters out of his brain," insisting that it "feels better than it sounds." When not coding, he enjoys playing the drums, running, biking, and snowshoeing.

Open Source Creations

Popular Blog Posts

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_jsantell/mirrors_jsantell_2013.cascadiajs.com.git
git@gitee.com:mirrors_jsantell/mirrors_jsantell_2013.cascadiajs.com.git
mirrors_jsantell
mirrors_jsantell_2013.cascadiajs.com
2013.cascadiajs.com
master

搜索帮助