haystack icon indicating copy to clipboard operation
haystack copied to clipboard

Add Async Document Store Mixin Tests to Avoid Duplicating Test Code in DocumentStore integrations

Open maxdswain opened this issue 8 months ago • 6 comments

Is your feature request related to a problem? Please describe. I found it useful when working on a recent PR to use the mixin tests added in #10477. It saves time rewriting tests that are largely the same between DocumentStore integrations and it would be good to have equivalent generic tests for async methods as well.

Describe the solution you'd like Write generic tests in haystack.testing.document_store based off of tests from DocumentStore integrations such as elasticsearch and chromadb which has comprehensive async tests.

Describe alternatives you've considered Writing various async tests for each DocumentStore integration.

Additional context

  • https://github.com/deepset-ai/haystack-core-integrations/issues/2811

maxdswain avatar Mar 12 '26 09:03 maxdswain

Good idea!

(@davidsbatista)

anakin87 avatar Mar 12 '26 10:03 anakin87

I can takeover this one

davidsbatista avatar Mar 12 '26 13:03 davidsbatista

@davidsbatista @anakin87 If possible, can I work on this? I'm really interested in this project. I can do it perfectly

statxc avatar Mar 12 '26 16:03 statxc

Hi, @davidsbatista @anakin87 Could you assign this bug to me, please? Thanks

sharpenteeth avatar Mar 17 '26 13:03 sharpenteeth

Thanks to all for the initiative. I'm currently working on this for the sync tests. To avoid any possible conflicts, I will put this on hold until the sync Mixin tests for all document stores are in place. Afterwards, I will specify this issue in more detail.

davidsbatista avatar Mar 17 '26 14:03 davidsbatista

Closing as all sub tasks are finished

sjrl avatar Apr 01 '26 14:04 sjrl