theosotr / cynthia

Data-Oriented Differential Testing of ORM Systems.
GNU General Public License v3.0
14 stars 1 forks source link

Implement test replay functionality #18

Closed theosotr closed 4 years ago

theosotr commented 4 years ago

Given one (or more) schema, cynthia should be able to re-execute a set of given AQL queries.

@StefanosChaliasos

theosotr commented 4 years ago

Structure of .cynthia:

Now, only mismatches are kept into the file system. There should be a CLI flag --store-matches to save matches as well. By default, the replay command should only run the queries of mismatches. However, there should be an option --all to replay all tests (mismatches, matches, and invalid).

theosotr commented 4 years ago

I propose the following cynthia subcommands.

StefanosChaliasos commented 4 years ago

We also have the command cynthia select

theosotr commented 4 years ago

We also have the command cynthia select

I suggest it should be part of replay.

StefanosChaliasos commented 4 years ago

Nope

theosotr commented 4 years ago

cynthia replay --schema /script.sql --query /dir/query.aql (similar to select) cynthia replay (inspects .cynthia)

OK?

StefanosChaliasos commented 4 years ago

We need select command for testing purposes. If we remove it, we won't have any way to run some queries that we know if they should fail or succeed (e.g., examples/listing, examples/books). We could write tests, but I guess neither of us is willing to write them.

StefanosChaliasos commented 4 years ago

20