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
テストでexpectExceptionを使用している箇所のチェック #1928
Comments
@seto1 例外が発生するとそこで処理が終了というのはありますが、その前提で、expectException は使ってもいいと思いますけどね。テストを分ければよいので。 |
その前提での使用は問題ないと思います。 テストを分けることで現在作成済みのテストの対応はできます。 そうであれば、問題が起きなさそうな書き方をしておいたほうが安全な気がします。
この場合も、既存のコードを参考にせずexpectExceptionを使うケースも考えられるので、問題解決とはいきませんが.. |
ですよね。 |
内容を再確認 問題
例#648 やることexpectException を呼び出している箇所をチェックして、それ以降にテストが書かれていないかチェック |
plugins配下でexpectExceptionで検索してヒットしたのは70箇所 要チェックの箇所は以下
|
それ以降のテストが実行されないため対応が必要
https://www.engilaboo.com/laravel-php-exception-test/
https://teratail.com/questions/362232
The text was updated successfully, but these errors were encountered: