[英]where do we configure cucumber test database configuration location in Ruby on Rails
[英]How do we configure rails to not clear out the test database?
我們正在嘗試在Rails中重建應用程序。 因此,我們已經准備好了所有表格。 在配置database.yml
文件時,我們發現以下注釋:
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
我們不想消滅我們的測試數據庫。 有沒有辦法禁用此選項?
將您的“測試”數據庫設置的“發展”部分database.yml
和“測試”一節中提出一個新的數據庫名稱。
並在測試夾具文件中使用大量夾具來使用它。 測試驅動開發是用1/10的錯誤進行兩倍的快速開發的好方法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.