Add dedicated Q.B. cache tests instead of generic testing in AbstractQueryTestCase#testToQuery #43200
Labels
:Search/Search
Search-related issues that do not fall into other categories
>test
Issues or PRs that are addressing/adding tests
v8.0.0-alpha1
In relation to occasional failures like #43112 and while looking into a fix in #43199 I had some discussions
about if its really a good idea to test the caching behaviour of all query builders in general in
AbstractQueryTestCase#testToQuery
like we currently do. Doing this for all kinds of randomized query builderparametrizations requires sometimes non-trivial edge-case handling in either the query builder generation code
or the utility code that codifies assumtions about whether this particular configuration of a builder should be cached
or not (currently implemented on a test-by-test basis by overwriting isCachable()).
This has two drawbacks:
Instead we should probably remove the cache-flag checks from
AbstractQueryTestCase#testToQuery
and add dedicated,more controlled tests for the query builders that need them.
The text was updated successfully, but these errors were encountered: