Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Codeceptionの受け入れテストをマネる
Search
Infiniteloop
July 14, 2023
Programming
0
98
Codeceptionの受け入れテストをマネる
2014/02/23に行われた株式会社インフィニットループ公開勉強会(OpenIL Vol.1)内でのLT発表に使われたスライド資料
Infiniteloop
July 14, 2023
Tweet
Share
More Decks by Infiniteloop
See All by Infiniteloop
[新卒向け研修資料] テスト文字列に「うんこ」と入れるな(2025年版)
infiniteloop_inc
16
65k
俺の PHP プロファイラの話 PHP スクリプトで PHP 処理系のメモリをのぞき込む
infiniteloop_inc
1
590
心理的安全性を学び直し、 「いい組織とは何か?」を考えてみる
infiniteloop_inc
1
850
ゼロからつくる 2D物理シミュレーション ~物理現象をコードに落とし込む方法~
infiniteloop_inc
1
1.3k
詫び石の裏側
infiniteloop_inc
0
820
[新卒向け研修資料] テスト文字列に「うんこ」と入れるな(2024年版)
infiniteloop_inc
7
35k
リファクタリングで実装が○○分短縮した話
infiniteloop_inc
0
250
ADRという考えを取り入れてみて
infiniteloop_inc
0
260
500万行のPHPプロジェクトにおけるログ出力の歩み
infiniteloop_inc
0
190
Other Decks in Programming
See All in Programming
愛される翻訳の秘訣
kishikawakatsumi
3
330
これならできる!個人開発のすゝめ
tinykitten
PRO
0
110
令和最新版Android Studioで化石デバイス向けアプリを作る
arkw
0
410
Microservices rules: What good looks like
cer
PRO
0
1.4k
宅宅自以為的浪漫:跟 AI 一起為自己辦的研討會寫一個售票系統
eddie
0
500
まだ間に合う!Claude Code元年をふりかえる
nogu66
5
830
Integrating WordPress and Symfony
alexandresalome
0
150
MAP, Jigsaw, Code Golf 振り返り会 by 関東Kaggler会|Jigsaw 15th Solution
hasibirok0
0
240
re:Invent 2025 のイケてるサービスを紹介する
maroon1st
0
110
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
150
30分でDoctrineの仕組みと使い方を完全にマスターする / phpconkagawa 2025 Doctrine
ttskch
4
870
Cell-Based Architecture
larchanjo
0
120
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
1
100
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
Into the Great Unknown - MozCon
thekraken
40
2.2k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
970
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
A better future with KSS
kneath
240
18k
The Pragmatic Product Professional
lauravandoore
37
7.1k
Transcript
Codeceptionͷ ड͚ೖΕςετΛϚωΔ גࣜձࣾΠϯϑΟχοτϧʔϓɹ͓ͷ
ड͚ೖΕςετ
͓ͷɹʼɹͳ͝͞Μɺ ɹɹɹɹɹCodeceptionͷγφϦΦͬͯ ɹɹɹɹɹͲΜͳΜͰ͔͢ʁ ͳ͝ʼɹ΄ʹΌ΄ʹΌγφϦΦ.png ɹɹɹɹɹ͜Μͳײ͡Ͱ͚͢ͲେৎͰ͔͢ʁ
දࣔͨ͠ΓɺΫϦοΫͨ͠Γ
ϑΥʔϜೖྗͨ͠Γɺૹ৴ͨ͠Γ
͋ʔɺ͜͏͍͏ײ͡ʁ
CasperJSɹ͍͚Δ͔
४උ͠·͢
CasperJSΛ͍Ε·͢
$ npm install -g phantomjs casperjs
$ casperjs —version 1.1.0-beta3
γφϦΦ͔͖·͢
࣮ߦ͠·͢
$ casperjs test codeceptionड͚ೖΕతͳ.js
Ͱ͖ͨʔ
ࣦഊͨ͠ʔʢࢀߟ
ͱͬͯ؆୯ʹ
Codeceptionͷ
ड͚ೖΕςετʹ͍͍ͭͨʂ
͍ɺςετίʔυ
Resurrectio
͜ΕͰखൈ͖
Resurrectioͱ
Resurrectioͱ • SeleniumͷΑ͏ʹهɾ࠶ݱ • CasperJSͷςετίʔυΛੜ • Chrome Extension
↑͜Μͳͷ͕ग़ྗ͞ΕΔ
ਖ਼ৗܥͳΒ͜ΕͰ͡Ύ͏ͿΜ ͳͷͰʂʁ
CasperJS + Resurrectio
؆୯ͳड͚ೖΕͳΒ͜ΕͰʂ ※ɾɾɾҟৗܥͱ͔͍͠ͷࣗྗͰॻ͜͏ʂ
͓͠·͍