Skip to content

Clear Test App Cache Prior to TestSuite #13

Description

@mostertb

The cache of the bundled Symfony Application is not cleared in between executions of the PHPUnit test suite. This sometimes causes false positives on test failures (particularly when modifying code that affects Dependency Injection).

Clearing and warming up the Symfony cache is, however, very slow so we should avoid doing this is a setUp() or setUpBeforeClass(). The best option would be if it could be done once per execution of the phpunit.

A potential solution could be to define our own autoloading file that first calls the composer autoloader and then does the cache clear. A console entrypoint has already been added to help with this

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions