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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Infiniteloop
July 14, 2023
Programming
100
0
Share
Codeceptionの受け入れテストをマネる
2014/02/23に行われた株式会社インフィニットループ公開勉強会(OpenIL Vol.1)内でのLT発表に使われたスライド資料
Infiniteloop
July 14, 2023
More Decks by Infiniteloop
See All by Infiniteloop
[新卒向け研修資料] テスト文字列に「うんこ」と入れるな(2025年版)
infiniteloop_inc
18
83k
俺の PHP プロファイラの話 PHP スクリプトで PHP 処理系のメモリをのぞき込む
infiniteloop_inc
1
700
心理的安全性を学び直し、 「いい組織とは何か?」を考えてみる
infiniteloop_inc
1
1k
ゼロからつくる 2D物理シミュレーション ~物理現象をコードに落とし込む方法~
infiniteloop_inc
1
1.5k
詫び石の裏側
infiniteloop_inc
0
950
[新卒向け研修資料] テスト文字列に「うんこ」と入れるな(2024年版)
infiniteloop_inc
7
36k
リファクタリングで実装が○○分短縮した話
infiniteloop_inc
0
300
ADRという考えを取り入れてみて
infiniteloop_inc
0
310
500万行のPHPプロジェクトにおけるログ出力の歩み
infiniteloop_inc
0
230
Other Decks in Programming
See All in Programming
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
250
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
270
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
450
OSもどきOS
arkw
0
450
The NotImplementedError Problem in Ruby
koic
1
590
Datadog × OpenTelemetry 入門と実践のあいだ
kn_to_maxpno
1
140
気づいたらRubyで100作品 ー クリエイティブコーディングが生活の一部になるまで / 100 Ruby Sketches Later: How Creative Coding Became Part of My Life
chobishiba
3
540
Composerを使ったサプライチェーン攻撃の様子を眺めてみる #phpstudy
o0h
PRO
2
220
「AIで開発し、AIを届ける」をEvalでつなぐ 〜AIネイティブに始めるプロダクト開発の実践〜 / Connecting "Develop with AI, deliver AI" with Eval
rkaga
4
2.3k
ローカルLLMを使ってB2Bサービスを作っていての学び
yaotti
0
140
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.9k
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
220
Featured
See All Featured
How to Ace a Technical Interview
jacobian
281
24k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
190
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
How to Talk to Developers About Accessibility
jct
2
220
It's Worth the Effort
3n
188
29k
The Cult of Friendly URLs
andyhume
79
6.9k
From π to Pie charts
rasagy
0
200
Un-Boring Meetings
codingconduct
0
310
We Have a Design System, Now What?
morganepeng
55
8.2k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.5k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
150
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
؆୯ͳड͚ೖΕͳΒ͜ΕͰʂ ※ɾɾɾҟৗܥͱ͔͍͠ͷࣗྗͰॻ͜͏ʂ
͓͠·͍