Codeception / Codeception/module-mongodb

Is it possible to use this without using the dump functionality?

オープン
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
2
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

説明

Dear,

We would like to use the action functionality (dontSeeInCollection, ...) but we are not using the dump functionality.
When we run the tests, we get an error.

`In MongoDb.php line 120:
[Codeception\Exception\ModuleConfigException]
MongoDb module is not configured!
File with dump doesn't exist.
Please, check path for dump file: tests/_data/dump`

At the moment dump_type is required. Would it be possible to make this optional or maybe create a MongoDb::DUMP_TYPE_NONE?

We would also do the clean up after the tests by our selfs.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

MongoDb.php の 120 行目から始め、dontSeeInCollection などのアクションを実行できるようになる前に、モジュールが dump_type と tests/_data/dump を必要とする理由を追跡します。完了の条件は、dump 機能なしでアクションが動作し、クリーンアップは引き続き呼び出し側の責任とし、モジュールがこの設定エラーを発生させなくなることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
mongodb, php
領域
databases
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。