Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for stores #109

Closed
kjetilk opened this issue Jun 21, 2017 · 2 comments
Closed

Tests for stores #109

kjetilk opened this issue Jun 21, 2017 · 2 comments
Assignees

Comments

@kjetilk
Copy link
Contributor

kjetilk commented Jun 21, 2017

It would be very helpful when writing stores to have a fairly comprehensive test suite to verify that the store is sane. I figured it might be helpful to have a separate issue for this referencing issue #98.

There's a start in Test::RDF::Trine::Store, but much work is needed, since Attean's architecture is very different. It should probably be modelled after the roles that can be used to compose the stores, with separate tests for non-mutable vs mutable stores, etc.

@kasei kasei assigned kasei and unassigned kasei Jan 9, 2019
@kasei
Copy link
Owner

kasei commented Nov 28, 2020

I found it very simple to add SPARQL test suite validation to my new AtteanX::Store::LMDB store by simply using a test file which consumed the Test::Attean::SPARQLSuite role and calling run_me.

We might want more store-specific tests to work like this, too, but passing the SPARQL test suite is a good indication that the store has at least the basic functionality working properly.

@kasei
Copy link
Owner

kasei commented Nov 30, 2020

Given that the original issue description is to "verify that the store is sane", I think the SPARQLSuite test role actually covers this. I'm going to close this as likely resolved, and if there's desire for more comprehensive tests of the store API specifically, this can be re-opened.

@kasei kasei closed this as completed Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants