Skip to content

Clear Test App Cache Prior to TestSuite #13

@mostertb

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

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