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
AIの力でテストのガバレッジ100%にした話
Search
Riya Amemiya
December 20, 2023
Programming
1.2k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AIの力でテストのガバレッジ100%にした話
Riya Amemiya
December 20, 2023
More Decks by Riya Amemiya
See All by Riya Amemiya
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
100
V8コントリビュート超入門
riyaamemiya
0
210
IsAny はなぜ any だけを見抜けるのか
riyaamemiya
0
79
V8のTorqueを語りたい
riyaamemiya
0
130
知ってた?JavaScriptの"正しさ"を検証するテストが5万以上もあること(Test262)
riyaamemiya
1
380
「え?!それ今ではHTMLだけでできるの!?」驚きの進化を遂げたモダンHTML
riyaamemiya
12
6.1k
そのJavaScript、V8が泣いてます。V8の気持ちを理解して書くパフォーマンス最適化
riyaamemiya
22
8.9k
「え?!それ今ではCSSだけでできるの!?」驚きの進化を遂げたモダンCSS
riyaamemiya
1
220
不健康エンジニア「健康」を知る
riyaamemiya
1
1.4k
Other Decks in Programming
See All in Programming
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
210
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
320
AIに “答え“を書かせるのを やめてみた
___akari11
0
110
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
190
APNsからLive Activityを開始する話
yumnumm
0
150
contenteditable と日本語入力に向き合う
colorful12
0
180
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
7
2.4k
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
130
GitHubハンズオン講座 — 実務レベルのチーム開発のフローを身につけよう
junhat6
0
120
Java 27新機能 / Java 27 new features
kishida
2
210
Domain-Driven Transformation
hschwentner
2
2.3k
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
480
Featured
See All Featured
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
270
So, you think you're a good person
axbom
PRO
2
2.2k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Git: the NoSQL Database
bkeepers
PRO
433
67k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
450
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
580
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
450
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
700
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Code Review Best Practice
trishagee
74
20k
Transcript
AIの力でテストのガバレッジ100%にした話 1
自己紹介 GMOメディア所属 西悠太 フロントエンドエンジニア TypeScript / Next.js X: Riya31377928 リンク集
2
GMOメディアについて https://www.gmo.media/recruit/ https://speakerdeck.com/gmo_media/gmomedeia-cai-yong-pitutizi-liao-enzinia https://findy-code.io/companies/1113 3
個人開発UMTの紹介 便利な関数を提供するライブラリ 依存なし https://github.com/riya-amemiya/UMT 4
しかしUMTにはこんな問題が 5
テストがガバガバ とりあえず動けばヨシ! そんな体制で開発していました 6
そんな体制で開発していたら 後から自分で使ってバグに気づくことも... 「アプデしたら壊れた」は日常茶飯事 7
テストのガバレッジを100%にしたい リリースの安全性を高める リファクタリングをしやすくする 8
でもテストのガバレッジを100%にするのは難しい 網羅的なテストを書くのは大変 そもそもテスト書くのめんどくさい!!!!! 9
じゃあAIの力を借りよう! 10
AIを活用したテストガバレッジの向上 テストケースを自動生成 不足しているテストケースを追加 テストで見つかったバグを修正 11
おすすめのツール https://cursor.sh/ https://github.com/lobehub/lobe-chat 12
テストケースを自動生成 @Codebase [ ファイルパス] のテストをJest で書いて 13
不足しているテストケースを追加 @Codebase [ ファイルパス] のn 行目が不足しているので追加のテストをJest で書いて 14
テストで見つかったバグを修正 @Codebase [ ファイルパス] のn 行目のバグを修正して 15
まとめ AIの力でテストのガバレッジ100%にした話でした テストイズベリーインポータント 16