LoginSignup
0
1

More than 1 year has passed since last update.

PHPUnitでテストケースを個別に指定して実行したい場合

Posted at

phpunitでテストコードを書いている場合、全体実行だけでなくグループ単位だったり、書いているケースを個別で実行したい場合があります。
そんな時のコマンドメモです。

グループ単位の場合

phpunit --group=testA

ケース指定の個別の場合

phpunit --group=testA --filter "testA-001"

filterのみでも実行可能です

phpunit --filter "testA-001"

日本語のテスト関数名にしている場合も実行可能です

phpunit --filter "テスト〜〜〜がエラーにならないことを確認する"
0
1
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
1