cakephp / elastic-search

Elastic search datasource for CakePHP
Other
88 stars 53 forks source link

Add first draft of new fixture implementation #260

Closed markstory closed 3 years ago

markstory commented 3 years ago

Add an index generator and state reset implementation. This mirrors the approach used in SQL databases where schema is created once at the beginning of a test and then reused across tests. This will require a bit more setup from end users but yields better performance.

I would appreciate any feedback on the naming and class structure as well as any way the 'schema file' approach could be improved upon.

othercorey commented 3 years ago

Might be good to move the classes into a Fixture namespace so their use is clear. StateReset is a pretty generic name for top-level namespace.