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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Riya Amemiya
December 20, 2023
Programming
1.1k
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
知ってた?JavaScriptの"正しさ"を検証するテストが5万以上もあること(Test262)
riyaamemiya
1
240
「え?!それ今ではHTMLだけでできるの!?」驚きの進化を遂げたモダンHTML
riyaamemiya
12
5.8k
そのJavaScript、V8が泣いてます。V8の気持ちを理解して書くパフォーマンス最適化
riyaamemiya
22
8.4k
「え?!それ今ではCSSだけでできるの!?」驚きの進化を遂げたモダンCSS
riyaamemiya
1
190
不健康エンジニア「健康」を知る
riyaamemiya
1
1.4k
AIと共同執筆してより質の高い記事を書こう
riyaamemiya
1
770
いつか使うかも貯金してたらめちゃめちゃ機能が増えてた話
riyaamemiya
0
950
TypeScriptの型で2進数計算
riyaamemiya
0
270
RailsからReactを剥がした話
riyaamemiya
0
810
Other Decks in Programming
See All in Programming
フロントエンドとバックエンドで「1文字」を揃えよう
youkidearitai
PRO
0
250
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
0
200
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
120
ローカルLLMを使ってB2Bサービスを作っていての学び
yaotti
0
160
Technical Debt: Understanding it Rightly, Engaging it Rightly #LaravelLiveJP
shogogg
0
210
Contextとはなにか
chiroruxx
0
280
ユニットテストの先へ:テスト技法で要求・仕様を整理するJava開発実践 / Beyond_Unit_Testing_Practical_Java_Development_Techniques_for_Organizing_Requirements_and_Specifications
shimashima35
0
390
AIとRubyの静的型付け
ukin0k0
0
560
不変条件と整合性境界—ビジネスが決める設計判断と実現パターン / Invariants and Consistency Boundaries
nrslib
13
3.6k
Modding RubyKaigi for Myself
yui_knk
0
910
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.9k
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.2k
Featured
See All Featured
Fireside Chat
paigeccino
42
3.9k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
Navigating Weather and Climate Data
rabernat
0
220
BBQ
matthewcrist
89
10k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Technical Leadership for Architectural Decision Making
baasie
3
400
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
190
SEO for Brand Visibility & Recognition
aleyda
0
4.6k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.7k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.3k
Rails Girls Zürich Keynote
gr2m
96
14k
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