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
97
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
55k
俺の PHP プロファイラの話 PHP スクリプトで PHP 処理系のメモリをのぞき込む
infiniteloop_inc
1
510
心理的安全性を学び直し、 「いい組織とは何か?」を考えてみる
infiniteloop_inc
1
730
ゼロからつくる 2D物理シミュレーション ~物理現象をコードに落とし込む方法~
infiniteloop_inc
1
930
詫び石の裏側
infiniteloop_inc
0
740
[新卒向け研修資料] テスト文字列に「うんこ」と入れるな(2024年版)
infiniteloop_inc
7
33k
リファクタリングで実装が○○分短縮した話
infiniteloop_inc
0
230
ADRという考えを取り入れてみて
infiniteloop_inc
0
230
500万行のPHPプロジェクトにおけるログ出力の歩み
infiniteloop_inc
0
170
Other Decks in Programming
See All in Programming
AI時代の『改訂新版 良いコード/悪いコードで学ぶ設計入門』 / ai-good-code-bad-code
minodriven
21
8.7k
GitHub Copilot and GitHub Codespaces Hands-on
ymd65536
2
150
猫と暮らす Google Nest Cam生活🐈 / WebRTC with Google Nest Cam
yutailang0119
0
160
Deep Dive into ~/.claude/projects
hiragram
14
6.8k
CDK引数設計道場100本ノック
badmintoncryer
1
230
What's new in AppKit on macOS 26
1024jp
0
130
おやつのお供はお決まりですか?@WWDC25 Recap -Japan-\(region).swift
shingangan
0
140
Node-RED を(HTTP で)つなげる MCP サーバーを作ってみた
highu
0
120
AIと”コードの評価関数”を共有する / Share the "code evaluation function" with AI
euglena1215
1
170
Azure AI Foundryではじめてのマルチエージェントワークフロー
seosoft
0
190
Railsアプリケーションと パフォーマンスチューニング ー 秒間5万リクエストの モバイルオーダーシステムを支える事例 ー Rubyセミナー 大阪
falcon8823
5
1.4k
NPOでのDevinの活用
codeforeveryone
0
870
Featured
See All Featured
Raft: Consensus for Rubyists
vanstee
140
7k
KATA
mclloyd
30
14k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Testing 201, or: Great Expectations
jmmastey
43
7.6k
RailsConf 2023
tenderlove
30
1.1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
48
2.9k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.6k
Designing for Performance
lara
610
69k
4 Signs Your Business is Dying
shpigford
184
22k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
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
؆୯ͳड͚ೖΕͳΒ͜ΕͰʂ ※ɾɾɾҟৗܥͱ͔͍͠ͷࣗྗͰॻ͜͏ʂ
͓͠·͍