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
カバレッジ率のバッヂ出す
Search
sisisin
December 24, 2016
Technology
680
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
カバレッジ率のバッヂ出す
ハッカソンでの発表資料です
sisisin
December 24, 2016
Other Decks in Technology
See All in Technology
分析の民主化を支えるメタデータ整備の実践
kakehashi
PRO
4
1.4k
サブエージェントと Claude Mods で作る独自 Advisor ツールの話
kenichiodo
2
160
JAWSUG TOHOKU 青森支部 「LoGoチャット」のAWS移行で 乗り越えたこと
taketakekaho
0
330
触りたくないデータに、どう触るか AI時代のRBACアクセスガバナンス
ivry_presentationmaterials
0
260
実践! SRE × AI - ABEMA における AIOps -
tetsuya28
8
3.1k
今さら理解するウェブフォントver.2026
takanorip
3
770
Getting Started with Google Antigravity
glaforge
0
300
UniFi(ユニファイ)AIカメラの現場活用
ludicmind
1
440
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
4
1k
夫婦で子育てするための育児標準化
codmoninc
PRO
0
330
PHPカンファレンス関西の招待状 / Invitation to PHP Conference Kansai
ykanoh
0
110
WasmをRustにする
sansantech
PRO
0
250
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
234
19k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Building Adaptive Systems
keathley
44
3.2k
How to build a perfect <img>
jonoalderson
1
6.1k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
710
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
360
The Mindset for Success: Future Career Progression
greggifford
PRO
0
540
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
270
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
4 Signs Your Business is Dying
shpigford
187
23k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
460
Transcript
カバレッジ率のバッヂ出す team zoi
概要 ゴール:coverallsとか使わないでREADMEにカバレッジ率のバッヂ出す モチベーション:せっかくフロントのカバレッジだしてもバックエンドと別に集計するサービ スがない
なんとかしてフロントのカバレッジを可視化 したい・・・したくない?
成果物 アプリ名:zone of integration リポジトリ: opt-tech/zoi アプリ概要: AWS lambdaを利用して、CIから渡されたカバレッジ率を元にバッジ画像を用意してS3 に配置、これをバッヂとして利用する
アーキテクチャ S3(private) S3(public) CircleCI test & report coverage GitHub repository
ZOI(lambda function) put coverage json file get badge image put badge image file link to badge file CI hook event trigger to
利用した技術 - CircleCI : 言わずと知れたCIサービス - AWS lambda : 言わずと知れたFunction
as a Service - 実行環境 : Node.js 4.3 : 言わずと知れたJavaScript実行環境 - AWS S3 : 言わずと知れたStorage as a Service - Shields.io : 言わずと知れたバッヂ生成サービス - ほんとか?
デモ
機能 - カバレッジ率を出す - バッヂの色、バッヂの名称の指定が可能 - バッヂの数は無制限 - 出したい種類のバッヂを出したい数だけ用意できる
苦労とか工夫とか 苦労 - CI -> trigger -> lambdaの実行が結構時間かかる - 最小限だけど2minとかCIにかかるしlambdaが起動されるのに最大
4,5分ぐらい待たされることがあ る - lambdaの動作確認が大変 - ローカルで動かせるようにちゃんと仕込みを入れたのが 17時だった(もっと早くやればよかった) - GitHubでバッヂ設置するとキャッシュされて更新されない(´・ω・`) - (´・ω・`) - あきむらさんがどこからともなく Content-TypeとCacheControlを設定するとうまくいくことを発見して 解決した
苦労とか工夫とか 工夫 - lambdaのデプロイはdeploy.sh作ってコマンド一発にした - 捗る - カバレッジ測るリポジトリは既存のちょうどいい使い回し - これ作るのに時間取られるのもアレなので
- いい感じに分担出来た - しめにゃん:AWSの構築(最近やったのでわりと覚えてて上手いこといった) - あきむら:lambda functionの実装
おしまい 質疑