[請益] 請問有人也有在用codeception在做測試嗎
最近打算要用Codeception 做測試
我在yaml 設定檔有 用到Db 模組
Db 的設定檔如下
Db:
dsn: 'mysql:host=192.168.1.1;dbname=testdb'
user: 'root'
password: 'pass word'
dump: 'tests/_data/dumper.sql'
populate: true
cleanup: true
現在的問題是,開始測試的時候,的確是會執行dumper.sql的語法
可是問題是,我要怎麼在測試結束的時候,執行清除資料
是要另外寫test helper 去執行嗎
謝謝回覆
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 125.227.47.246
※ 文章網址: http://www.ptt.cc/bbs/PHP/M.1419227684.A.7FA.html
→
12/22 14:27, , 1F
12/22 14:27, 1F
→
12/22 18:19, , 2F
12/22 18:19, 2F
→
12/22 18:20, , 3F
12/22 18:20, 3F
→
12/25 22:32, , 4F
12/25 22:32, 4F
→
12/25 22:32, , 5F
12/25 22:32, 5F
→
12/25 22:33, , 6F
12/25 22:33, 6F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章