Behat tests: Reset static cache of all object models between feature tests (clearCacheBeforeFeature) #22197
Labels
1.7.7.x
Branch
CO
Category: Core
Developer Feature
Developer-oriented feature
Feature
Type: New Feature
Fixed
Resolution: issue closed because fixed
PR available
Solution: issue is being addressed
Projects
Milestone
Is your feature request related to a problem?
Sometimes, we add behat tests, it works fine, but then it fails when we execute our test amongst the other behat tests.
That's because there are some static caches from previous tests messing with the tests we added. When it happens we have to debug, find which previous test makes our test fails, it's annoying and a loss of time.
Describe the solution you'd like
The idea is to reset the static caches of ALL object models between behat feature tests instead of resetting the cache of object models one by one as we encounter problems. There are parts of the software that are not covered by behat tests yet, and these issues will happen again for sure as we migrate new pages, integrate new CQRS commands, etc...
The text was updated successfully, but these errors were encountered: