-
Notifications
You must be signed in to change notification settings - Fork 6
Update phpunit/phpunit #6
Comments
I've upgraded PHPUnit and fixed the unit tests locally, I'll push up over the weekend for Travis to run integration tests etc. I also went ahead and replaced all non namespaced uses of PHPUnit classes for their namespaced counterparts which should make future upgrades smoother. |
Hi @mikeymike . |
@buskamuza sorry I fell ill and have been afk pretty much since my last update. I'll get this pushed up asap, I want to split my commit as it contains a lot of changes which are just in comments (for namespace changes) and I didn't want it to pollute the key changes I made |
Got it. Thank you for the update! |
@mikeymike , would you mind creating a PR for what you have? |
@buskamuza sorry for the delay, I tried to rebase and got stung because of the large namespace updates I made for all the PHPUnit classes. I also realise that by me doing that it would likely cause others the same pain for their branches if it got merged in, so I've chosen to remove the commit and rebase. We can always update the old style class refs in a separate PR Here's the PR anyway, pushed up for Travis to run funtional / integration tests... magento-engcom/php-7.2-support#125 |
Reopen this issue because it takes a lot more memory to run all unit tests after upgrade phpunit to version 7. It appears that phpunit 7 takes more than 2G memory to getTestSuite() and addTestFiles() of all CE unit tests. It only takes phpunit 6 about 384M memory to getTestSuite() and addTestFiles() of all CE unit tests. Due to this memory issue with phpunit 7, it causes b2b unit test build hang frequently. After the discussion, it is decided to postpone the upgrade of phpunit 7 for now. |
I am not aware of a change in PHPUnit 7 that would explain such an increase in memory usage. |
@sebastianbergmann , how about this https://github.com/sebastianbergmann/phpunit/blob/master/src/Framework/TestSuite.php#L104 ? It's absent in 6.2.4 - https://github.com/sebastianbergmann/phpunit/blob/6.2.4/src/Framework/TestSuite.php The issue with it is that an instance of |
Important: use 2.3-develop as a target branch.
Current: 6.2.4
Update to: 7.0.0
Known issues:
\Magento\Framework\TestFramework\Unit\Listener\ReplaceObjectManager
implements removed\PHPUnit\Framework\BaseTestListener
. Should be replaced with\PHPUnit\Framework\TestListenerDefaultImplementation
PHPUnit\Framework\TestListener
, for instance, has changed)\PHPUnit\Framework\TestListener
in test frameworks (integration and unit)The text was updated successfully, but these errors were encountered: