Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Codecov 〜テストカバレッジ可視化ウェブサービスの紹介〜
Search
Pine Mizune
September 01, 2015
Programming
510
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Codecov 〜テストカバレッジ可視化ウェブサービスの紹介〜
会社の技術勉強会で発表した資料
Pine Mizune
September 01, 2015
More Decks by Pine Mizune
See All by Pine Mizune
多言語対応と絵文字ジェネレーター / i18n of Emoji Generator
pine
0
900
C++ 製グラフィックライブラリ Skia の紹介 / Introduction to the graphics library Skia written by C++
pine
0
2k
asyncio + aiohttp で作るウェブサービス / How to develop a web service with asyncio and aiohttp
pine
0
710
Lerna による明示的疎結合アーキテクチャ
pine
1
690
CircleCI 2.0 x JavaScript
pine
3
580
Perl 卒業式
pine
0
380
Android Studio の気になる warnings を抑制する方法まとめ
pine
0
540
Emoji Generator meets Browser Extensions
pine
1
3k
近年の OSS 開発における CI 選択のベストプラクティス
pine
3
4.5k
Other Decks in Programming
See All in Programming
App Intentsのビルドプロセスを支える技術
kntkymt
0
420
WebMCP Challenge に星空観察アプリで参加した話
okajun35
0
190
個人開発基盤をまるごとCloudflareに引っ越して爆速で総合的体験を向上させた話
tinykitten
0
200
WebRTC映像をAirPlayに対応させる挑戦.pdf
monolithic_adam
0
300
速習iPhone Duo対応
yuukiw00w
1
710
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
1
12k
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
0
1.8k
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
7
2.2k
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
1
570
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
450
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
350
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
500
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
37
4k
Designing for humans not robots
tammielis
254
26k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
560
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
990
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
330
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
720
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
830
4 Signs Your Business is Dying
shpigford
187
23k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
310
Being A Developer After 40
akosma
91
590k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
600
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
250
Transcript
Codecov Code coverage done right. 1 Sep, 2015 水音 氷音
ターゲット層と伝えたいこと テストとカバレッジ Codecov とは ? Codecov と Coveralls
の違い 実演 まとめ 目次 2
ターゲット層と伝えたいこと ターゲット層 ü テストするなら、カバレッジを取ろう ü Coveralls はやめて Codecov を使おう 伝えたいこと
ü カバレッジについて知らない・日常取らない人 ü Codecov を使ったことがない人 3
テストとカバレッジ (1/2) 4 コード網羅率(コードもうらりつ、英: Code coverage )コードカ バレッジは、ソフトウェアテストで用いられる尺度 の1つ である。プログラムのソースコードが
テストされた割合 を意味 する。 by Wikipedia: コード網羅率 ü きちんとテストされているか ? ü どこがテストされていないか ? カバレッジを取ることにより、 を視覚的に明示可能
テストとカバレッジ (2/2) 5 subtest fac => sub { is is_leap_year(2001),
0; is is_leap_year(2004), 1; is is_leap_year(2100), 0; }; sub is_leap_year { my $year = shift; if ($year % 400 == 0) { return 1; } if ($year % 4 == 0) { if ($year % 100 != 0) { return 1; } return 0; } return 0; } ü うるう年か判定するプログラム ü テスト カバレッジは何 % ? ※ コードはサンプル用に長く書いてあります ※ ここでいうカバレッジは C0 (命令網羅) です
Codecov とは ? (1/2) 6 カバレッジを見やすく表示するウェブサービス 同様のサービス: Coveralls
$ git push GitHub CI Codecov ブラウザで閲覧 カバレッジ データ WebHook 開発者
7
Codecov と Coveralls の違い 8 機能的には、ほとんど同じ Coveralls に比べて軽い
Coveralls に比べて軽い Coveralls に比べて軽い ü 忌々しいカバレッジ送信エラーが起きない
実演 9 Perl のプロジェクト x Codecov テスト実行: prove
カバレッジ計測: Devel::Cover カバレッジ送信: Devel::Cover::Report::Codecov https://github.com/codecov/codecov-perl ↑ Author: PINE
まとめ 10 カバレッジを取ることで テストの十分・不十分が可視化できる Perl でカバレッジを取るには テスト時に Devel::Cover
を使う Codecov は Coveralls より軽い