Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Add an option in phpunit config to clear the cache before tests are run #421

Closed

Conversation

adrienbrault
Copy link
Contributor

Hello,

This fixes #374

@fabpot
Copy link
Member

fabpot commented Sep 19, 2012

I don't like adding more options. It should be better to add a note in the documentation about that. Should be more than enough, especially because the files that are changed are part of the user project and not Symfony.

@ericclemmons
Copy link

What's the reason for blowing the cache before running the tests? Is it because you have custom files (like configs, templates, etc.) that aren't being recompiled in the container?

If so, perhaps the solution is a cookbook article on adding custom FileResources to the container so that they're automatically checked for changes when the tests are ran.

(I had the same problem & solved it that way)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants