2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

phpunit6でテストしてるプロジェクトをphpunit7にあげてparatestの最新版を使えるようにする

Posted at

PHPUnit6→PHPUnit7

$ composer update phpunit/* sebastian/diff sebastian/comparator 

phpunit7+ ではtestsuiteにnameがないと怒られるようになったのでphpunit.xml.distを修正する。

paratest入れる

$ composer require --dev brianium/paratest

paratestでテストを実行する

$ vendor/bin/paratest -p 5

雑記

  • あまりスペック良くない環境だと、通常のphpunitにくらべてあまり実行時間の差が出なくて旨味が少ない(先人も言っている通り)
2
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?