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
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
18
74k
俺の PHP プロファイラの話 PHP スクリプトで PHP 処理系のメモリをのぞき込む
infiniteloop_inc
1
610
心理的安全性を学び直し、 「いい組織とは何か?」を考えてみる
infiniteloop_inc
1
910
ゼロからつくる 2D物理シミュレーション ~物理現象をコードに落とし込む方法~
infiniteloop_inc
1
1.4k
詫び石の裏側
infiniteloop_inc
0
870
[新卒向け研修資料] テスト文字列に「うんこ」と入れるな(2024年版)
infiniteloop_inc
7
35k
リファクタリングで実装が○○分短縮した話
infiniteloop_inc
0
270
ADRという考えを取り入れてみて
infiniteloop_inc
0
270
500万行のPHPプロジェクトにおけるログ出力の歩み
infiniteloop_inc
0
200
Other Decks in Programming
See All in Programming
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
180
CSC307 Lecture 09
javiergs
PRO
1
840
CSC307 Lecture 01
javiergs
PRO
0
690
Oxlintはいいぞ
yug1224
5
1.3k
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
1
2.6k
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
240
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
170
CSC307 Lecture 05
javiergs
PRO
0
500
Architectural Extensions
denyspoltorak
0
290
Fragmented Architectures
denyspoltorak
0
160
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
590
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
Featured
See All Featured
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
Building an army of robots
kneath
306
46k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
From π to Pie charts
rasagy
0
120
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.3k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
57
50k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
120
How to Talk to Developers About Accessibility
jct
2
130
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
290
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
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
؆୯ͳड͚ೖΕͳΒ͜ΕͰʂ ※ɾɾɾҟৗܥͱ͔͍͠ͷࣗྗͰॻ͜͏ʂ
͓͠·͍