Codeception / Codeception/module-db

Fix a confusion between 'cleanup' and 'skip_cleanup_if_failed' configuration params

未關閉
#67 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
PHP
星號
23
分支
31
PR 合併指標
30 天內沒有已合併 PR

描述

#### Problem
Currently we have configuration params `cleanup` and `skip_cleanup_if_failed`.
Despite their names sound similar, they are responsible for completely different things: `cleanup` controls the database re-creation before each test, and `skip_cleanup_if_failed` controls whether records, added by `haveInDatabase()` should be erased after the test.
#### Suggested fix
It would be good to distinguish these two 'cleanups' in documentation and in the names of config params in next major versions.
For example, to rename `cleanup` to `repopulate` (since we have `populate` responsible for initial database creation).

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Issue 提到了設定參數 `cleanup` 和 `skip_cleanup_if_failed`,但沒有指出檔案或測試。首先定位它們的定義和文件,然後確定兩種行為是如何描述的,以及未來的重新命名會影響哪些使用者。完成的標準是明確區分這兩項 cleanup 職責,並針對 major 版本解決所提議的命名變更。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
php
領域
database, documentation
Issue 類型
文件
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。