作者:
knives 2014-12-22 13:54:41最近打算要用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 去執行嗎
謝謝回覆