Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Bump johnkary/phpunit-speedtrap from 3.2.0 to 3.3.0 #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github May 11, 2021

Bumps johnkary/phpunit-speedtrap from 3.2.0 to 3.3.0.

Release notes

Sourced from johnkary/phpunit-speedtrap's releases.

Compatibility with PHPUnit 9.5+ and more

🎊 Version 3.3.0 has been released! 🎊

If you encounter issues please open a new Issue or create a new Discussion.

How do I upgrade?

Version 3.3.0 is backwards compatible with all prior version 3.0 releases. There are no breaking changes.

{
    "require": {
        "johnkary/phpunit-speedtrap": "^3.3"
    }
}
$ composer update johnkary/phpunit-speedtrap

Compatibility with PHPUnit 9.5+

Thank you @​mvorisek for communicating with Sebastian on the fix and proposing PR #73 fixing the issue. And thank you to everyone upvoting that the fix worked!

New Feature: Disable slowness profiling using an environment variable

SpeedTrapListener profiles for slow tests when enabled in phpunit.xml. But using an environment variable named PHPUNIT_SPEEDTRAP can enable or disable the listener.

$ PHPUNIT_SPEEDTRAP="disabled" ./vendor/bin/phpunit

Use case: Disable profiling in development, but profile with Travis CI

Travis CI is popular for running tests in the cloud after pushing new code to a repository.

Step 1) Enable SpeedTrapListener in phpunit.xml, but set PHPUNIT_SPEEDTRAP="disabled" to disable profiling when running tests.

<phpunit bootstrap="vendor/autoload.php">
...
    <php>
        <env name="PHPUNIT_SPEEDTRAP" value="disabled" />
    </php>
&lt;listeners&gt;
    &lt;listener class=&quot;JohnKary\PHPUnit\Listener\SpeedTrapListener&quot; /&gt;
&lt;/listeners&gt;

</phpunit>

Step 2) Configure .travis.yml with PHPUNIT_SPEEDTRAP="enabled" to profile for slow tests when running on Travis CI:

... (truncated)

Changelog

Sourced from johnkary/phpunit-speedtrap's changelog.

3.3.0 (2020-12-18)

Version 3.3 adds supports for PHPUnit 9.5+, and a way to enable or disable the SpeedTrap listener using environment variables.

Commits
  • 9ba81d4 CHANGELOG updated for v3.3.0 release
  • 87513a7 Merge pull request #73 from mvorisek/fix_phpunit_9.5
  • 2b196cf Fix for PHPUnit 9.5 and newer
  • 3c15eb5 Merge pull request #66 from johnkary/master-envVarDisable
  • 7f25cb9 PHPUNIT_SPEEDTRAP documented in CHANGELOG
  • cd77276 master branch now tracking for version 4.0
  • 8c77c58 Title typo to match use case below and clarify new use cases
  • 591a7a5 Merge branch 'master' into master-envVarDisable
  • eeb2098 Environment variable PHPUNIT_SPEEDTRAP="disabled" can disable profiling
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label May 11, 2021
@dependabot dependabot bot force-pushed the dependabot/composer/johnkary/phpunit-speedtrap-3.3.0 branch 2 times, most recently from 6990fb9 to 9ef0098 Compare June 7, 2021 18:28
@dependabot dependabot bot force-pushed the dependabot/composer/johnkary/phpunit-speedtrap-3.3.0 branch from 9ef0098 to 2084987 Compare November 24, 2022 01:55
@dependabot dependabot bot force-pushed the dependabot/composer/johnkary/phpunit-speedtrap-3.3.0 branch from 2084987 to 5264a6e Compare November 24, 2022 01:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants