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
フロントエンドエンジニアがLaravelでテストコードを書いてみた
Search
Kana Haebaru
May 29, 2021
Technology
870
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
フロントエンドエンジニアがLaravelでテストコードを書いてみた
Kana Haebaru
May 29, 2021
More Decks by Kana Haebaru
See All by Kana Haebaru
技術だけじゃ足りなくなった日 ~エンジニアがFDE的に越境して見えたこと~
kanasann1106
0
45
そろそろ本格的にはじめたい生成AIアプリ開発
kanasann1106
0
37
おさえておきたい!LLM アプリケーション開発の基礎とLangChain/LangGraph の概要解説
kanasann1106
0
44
開発以外の業務も、Cursor で効率化できる?
kanasann1106
0
120
生成AI活用機能のプロンプト設計と開発の裏側
kanasann1106
0
360
バイアスを越えて、自分らしいエンジニアキャリアを見つける
kanasann1106
0
190
OpenAIとLangChainを活用して ジェンダーバイアス解消ツールを作った話
kanasann1106
0
57
Supabase × GASでサクッと作る!社内向け管理画面の作成法
kanasann1106
0
1.2k
いいプロダクトを作りたい!の想いで動いていた結果 テックリードになっていた話
kanasann1106
0
110
Other Decks in Technology
See All in Technology
Running Kotlin + Quarkus with Lambda
nealle
1
4k
エンタメ企業のM&Aを支えるデータ基盤 ― 統合から店舗のリアルタイム分析まで / Data Engineering Summit 2026
genda
0
190
DevelopersIO 2026 知識の地図を描く ─ オントロジーとは何か?
ishikawa_satoru
1
1.7k
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
5
1.2k
DBについての基礎説明(MySQL編) - コロプラ 2026年度 新卒研修
colopl
0
130
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
180
Getting Started with Google Antigravity
glaforge
0
320
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
350
Kiro Crewをはじめよう
kizawa2020
1
160
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
190
OptunaHub: ブラックボックス最適化のためのプラットフォーム
pfn
PRO
0
140
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
5.1k
Featured
See All Featured
Statistics for Hackers
jakevdp
799
230k
A designer walks into a library…
pauljervisheath
211
25k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
Practical Orchestrator
shlominoach
192
12k
The SEO identity crisis: Don't let AI make you average
varn
0
590
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Building Applications with DynamoDB
mza
96
7.2k
First, design no harm
axbom
PRO
2
1.3k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Transcript
フロントエンドエンジニアが Laravelでテストコードを書いてみた 2021/05/29PHPカンファレンス沖縄
アジェンダ ⾃⼰紹介 環境構築編 実装編 まとめ
南⾵原⾹奈(Kana) @kanasann1106 与那国島出⾝ 株式会社フォトラクションのエンジニア マイブーム:瞑想 ⾃⼰紹介
構築 ① https://laravel.com/docs/8.x/installation#getting-started-on-macos
環境構築編② Unitテスト ⼀番粒度の細かいテスト クラスのメソッド1つ1つの動作を検証するためのテ ストケースを書いていく Featureテスト Unitよりも粒度を⼤きくしたテスト Controllerの機能テストを書いていく
実装編(Featureテスト)
実装編(Unitテスト)
実装編(テスト実⾏) phpartisantest!!!!!
実装編(テスト実⾏)
まとめ① Assertメソッドが便利!
コードをキレイに書こうという意識になる! まとめ②
テストコード書いてみよう! まとめ③
参考⽂献 Laravel公式ドキュメント https://laravel.com/docs/8.x/installation Assertメソッド⼀覧 https://qiita.com/rev84/items/12fbd16d210d6a86eff9 PHPUnitで例外をテスト https://qiita.com/juve_534/items/b76fd7ec084d28db885c サンプルコード https://github.com/kanasann1106/phpcon-okinawa-lt
ご静聴ありがとうございました! おしまい