Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AIの力でテストのガバレッジ100%にした話
Search
Riya Amemiya
December 20, 2023
Programming
0
820
AIの力でテストのガバレッジ100%にした話
Riya Amemiya
December 20, 2023
Tweet
Share
More Decks by Riya Amemiya
See All by Riya Amemiya
AIと共同執筆してより質の高い記事を書こう
riyaamemiya
1
450
社内で発信し続けてたら19歳なのに技術リード的なポジションになっちゃった話
riyaamemiya
0
66
いつか使うかも貯金してたらめちゃめちゃ機能が増えてた話
riyaamemiya
0
880
TypeScriptの型で2進数計算
riyaamemiya
0
200
RailsからReactを剥がした話
riyaamemiya
0
670
Other Decks in Programming
See All in Programming
SpringBootにおけるオブザーバビリティのなにか
irof
1
890
複数アプリケーションを育てていくための共通化戦略
irof
0
330
tsconfigのオプションで変わる型世界
keisukeikeda
1
130
primeNumberでのRBS導入の現在 && RBS::Traceでinline RBSを拡充してみた
mnmandahalf
0
250
CQRS/ESのクラスとシステムフロー ~ RailsでフルスクラッチでCQRSESを組んで みたことから得た学び~
suzukimar
0
190
DevDay2025-OracleDatabase-kernel-addressing-history
oracle4engineer
PRO
7
1.6k
インターフェース設計のコツとツボ
togishima
2
490
型安全なDrag and Dropの設計を考える
yudppp
5
660
💎 My RubyKaigi Effect in 2025: Top Ruby Companies 🌐
yasulab
PRO
1
130
Interface vs Types ~型推論が過多推論~
hirokiomote
1
230
"使いづらい" をリバースエンジニアリングする UI の読み解き方
rebase_engineering
0
110
Investigating Multithreaded PostgreSQL
macdice
0
150
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
7
460
Building Adaptive Systems
keathley
41
2.6k
Code Review Best Practice
trishagee
68
18k
The Invisible Side of Design
smashingmag
299
50k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
5
620
How STYLIGHT went responsive
nonsquared
100
5.6k
Agile that works and the tools we love
rasmusluckow
329
21k
The Language of Interfaces
destraynor
158
25k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Rails Girls Zürich Keynote
gr2m
94
13k
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