-
Notifications
You must be signed in to change notification settings - Fork 9
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
Sweep: Add query tests #69
Comments
Actions
❌ Unable to Complete PRI'm sorry, but it looks like an error has occurred due to a code validation failure. The error message is . Here were the changes I had planned:
|
Details
Context:
This repo is an ORM that supports queries for surrealDB and typeDB. The tests are run for both, with the same tests, using the common BQL (Blitz query language) as the input and the output. In the mid part
Todo:
Take a deep breath and find out missing query tests for different potential combinations.
As there are roleFields, and two types of linkFields (target: role, and target:relation) we need to test different features on different items.
Context files
/home/loic/blitz-orm/tests/mocks/schema.ts //The data follows these rules
/home/loic/blitz-orm/tests/mocks/generatedSchema.ts // This is an extended version of that schema, with some precomputed things
/home/loic/blitz-orm/tests/surrealdb/mocks/data.surql //This is the original data set, translated to surrealDB
/home/loic/blitz-orm/tests/typedb/mocks/data.tql //This is the same data set equivalent, for typeDB
Also this is the state machine that runs the BQL to SurrealQL/TypeQL runs it and then transforms the answers back to BQL output:
/home/loic/blitz-orm/src/stateMachine/query/machine.ts
/home/loic/blitz-orm/src/stateMachine/query/surql/machine.ts
/home/loic/blitz-orm/src/stateMachine/query/tql/machine.ts
FIles to change:
/home/loic/blitz-orm/tests/unit/queries/query.ts
Instructions:
/home/loic/blitz-orm/tests/typedb/mocks/data.tql //This is the same data set equivalent, for typeDB
The text was updated successfully, but these errors were encountered: