LoginSignup
0
1

More than 5 years have passed since last update.

グループを作って、一部のファイルのみphpUnitを実行する方法

Posted at

Test Runner optionsで指定する。

設定

右上の

スクリーンショット 2017-05-08 15.42.03.png

からTest Runner optionsに --group でグループ名を指定(今回はactiveとした)

スクリーンショット 2017-05-08 15.40.15.png

実行したいコードにgroupをつける

コードに以下のようにコメントで記入

スクリーンショット 2017-05-08 15.44.25.png

注意点

@group active というコメントはphpUnitの実行にだけ必要なのでコミットしないこと。

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