0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

CakePHP2でコマンドラインからテストを起動

Last updated at Posted at 2024-09-13

ごくまれにCakePHP2系のテストを走らせることがあります。実行時のパラメタの渡し方を忘れるのでメモしておきます。

自作部分のテストは

# ./Console/cake test app Model/Behavior/SimpleStatusBehavior

プラグインのテストは

# ./Console/cake test Cakeplus Model/Behavior/AddValidationRule

自作部分のファイルはここにあります

./Test/Case/Model/Behavior/SimpleStatusBehaviorTest.php

プラグインファイルはここにあります

./Plugin/Cakeplus/Test/Case/Model/Behavior/AddValidationRuleTest.php

公式マニュアル
https://book.cakephp.org/2/ja/development/testing.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?