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
870
AIの力でテストのガバレッジ100%にした話
Riya Amemiya
December 20, 2023
Tweet
Share
More Decks by Riya Amemiya
See All by Riya Amemiya
不健康エンジニア「健康」を知る
riyaamemiya
1
1.2k
AIと共同執筆してより質の高い記事を書こう
riyaamemiya
1
570
社内で発信し続けてたら19歳なのに技術リード的なポジションになっちゃった話
riyaamemiya
0
79
いつか使うかも貯金してたらめちゃめちゃ機能が増えてた話
riyaamemiya
0
900
TypeScriptの型で2進数計算
riyaamemiya
0
210
RailsからReactを剥がした話
riyaamemiya
0
690
Other Decks in Programming
See All in Programming
TanStack DB ~状態管理の新しい考え方~
bmthd
2
490
AWS発のAIエディタKiroを使ってみた
iriikeita
1
170
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
270
速いWebフレームワークを作る
yusukebe
5
1.7k
Updates on MLS on Ruby (and maybe more)
sylph01
1
180
Vue・React マルチプロダクト開発を支える Vite
andpad
0
110
AIでLINEスタンプを作ってみた
eycjur
1
230
MCPで実現するAIエージェント駆動のNext.jsアプリデバッグ手法
nyatinte
7
1.1k
私の後悔をAWS DMSで解決した話
hiramax
4
200
CSC305 Summer Lecture 12
javiergs
PRO
0
140
RDoc meets YARD
okuramasafumi
4
160
Namespace and Its Future
tagomoris
6
700
Featured
See All Featured
Embracing the Ebb and Flow
colly
87
4.8k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
For a Future-Friendly Web
brad_frost
180
9.9k
The Cost Of JavaScript in 2023
addyosmani
53
8.9k
How to train your dragon (web standard)
notwaldorf
96
6.2k
The Art of Programming - Codeland 2020
erikaheidi
55
13k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3k
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