Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Report high memory usage PHPUnit tests: Managed by opg-org-infra & Terraform

License

Notifications You must be signed in to change notification settings

ministryofjustice/opg-phpunit-memory-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpunit-memory-usage

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>

About

Report high memory usage PHPUnit tests: Managed by opg-org-infra & Terraform

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Languages