ministryofjustice / phpunit-memory-usage
Report high memory usage PHPUnit tests
Installs: 77 881
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 17
Forks: 0
pkg:composer/ministryofjustice/phpunit-memory-usage
Requires
- php: >=8.0
- phpunit/phpunit: ^9.0
This package is not auto-updated.
Last update: 2023-03-31 13:13:21 UTC
README
Report high memory usage PHPUnit tests: Managed by opg-org-infra & Terraform
Configuration
Add into the phpunit.xml extensions section
<extensions> <extension class="MinistryOfJustice\PHPUnit\MemoryUsageHook"/> </extensions>
There are optional arguments to set the maximum allowed memory threshold and whether to display a running total of usage after each test
<extensions> <extension class="MinistryOfJustice\PHPUnit\MemoryUsageHook"> <arguments> <integer>500000</integer> <boolean>true</boolean> </arguments> </extension> </extensions>