Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

テストで使用されるconfigファイルを切り替えたい #1013

Open
clicktx opened this issue Sep 29, 2024 · 0 comments · May be fixed by #1014
Open

テストで使用されるconfigファイルを切り替えたい #1013

clicktx opened this issue Sep 29, 2024 · 0 comments · May be fixed by #1014

Comments

@clicktx
Copy link
Contributor

clicktx commented Sep 29, 2024

かなり個人的な要望ですが、、、
開発環境の違いでmasterの変更を取り込む(git pull --rebase)とテストを実行するまでに余計な修正が発生するため、テスト実行時にconfigファイルが切り替えられると良いかと思っています。

  • テスト実行時には別のDBを使いたい
  • mailchacherのpath(URL)が公式のものと異なる

#998 の修正でCommon_TestCaseで設定していたMAILCATCHER_URLが無くなり、TEST_MAILCATCHER_URLが使われるようになったのでテスト用configファイルに

define('TEST_MAILCATCHER_URL', 'http://127.0.0.1:1080');

を追加して値を変更することが出来そうなので更に利便性が上がりそうです。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant