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
16
60k
俺の PHP プロファイラの話 PHP スクリプトで PHP 処理系のメモリをのぞき込む
infiniteloop_inc
1
560
心理的安全性を学び直し、 「いい組織とは何か?」を考えてみる
infiniteloop_inc
1
800
ゼロからつくる 2D物理シミュレーション ~物理現象をコードに落とし込む方法~
infiniteloop_inc
1
1.2k
詫び石の裏側
infiniteloop_inc
0
780
[新卒向け研修資料] テスト文字列に「うんこ」と入れるな(2024年版)
infiniteloop_inc
7
34k
リファクタリングで実装が○○分短縮した話
infiniteloop_inc
0
240
ADRという考えを取り入れてみて
infiniteloop_inc
0
250
500万行のPHPプロジェクトにおけるログ出力の歩み
infiniteloop_inc
0
180
Other Decks in Programming
See All in Programming
明日から始めるリファクタリング
ryounasso
0
140
Pull-Requestの内容を1クリックで動作確認可能にするワークフロー
natmark
2
510
iOSエンジニア向けの英語学習アプリを作る!
yukawashouhei
0
190
私達はmodernize packageに夢を見るか feat. go/analysis, go/ast / Go Conference 2025
kaorumuta
2
570
Devvox Belgium - Agentic AI Patterns
kdubois
1
120
他言語経験者が Golangci-lint を最初のコーディングメンターにした話 / How Golangci-lint Became My First Coding Mentor: A Story from a Polyglot Programmer
uma31
0
160
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
140
TFLintカスタムプラグインで始める Terraformコード品質管理
bells17
2
170
NixOS + Kubernetesで構築する自宅サーバーのすべて
ichi_h3
0
870
ALL CODE BASE ARE BELONG TO STUDY
uzulla
25
6k
タスクの特性や不確実性に応じた最適な作業スタイルの選択(ペアプロ・モブプロ・ソロプロ)と実践 / Optimal Work Style Selection: Pair, Mob, or Solo Programming.
honyanya
3
170
Introducing ReActionView: A new ActionView-Compatible ERB Engine @ Kaigi on Rails 2025, Tokyo, Japan
marcoroth
3
1k
Featured
See All Featured
For a Future-Friendly Web
brad_frost
180
9.9k
What's in a price? How to price your products and services
michaelherold
246
12k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
The Power of CSS Pseudo Elements
geoffreycrofte
79
6k
Gamification - CAS2011
davidbonilla
81
5.5k
Producing Creativity
orderedlist
PRO
347
40k
Java REST API Framework Comparison - PWX 2021
mraible
34
8.9k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.6k
Keith and Marios Guide to Fast Websites
keithpitt
411
23k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
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
؆୯ͳड͚ೖΕͳΒ͜ΕͰʂ ※ɾɾɾҟৗܥͱ͔͍͠ͷࣗྗͰॻ͜͏ʂ
͓͠·͍