Skip to content

Conversation

@psteinroe
Copy link
Contributor

@psteinroe psteinroe commented May 22, 2025

this is a follow-up for #485

adds an ignored test that runs the parser on the entire regression test suite.

the snapshots are only written for failed tests and into a gitignored directory. the test files are not ignored to not force re-downloading everytime.

this allows a developer to go through the failed snapshots one-by-one and fix the parser.

I also added some logic to the download script to remove template variables because they are not supported (yet).

@netlify
Copy link

netlify bot commented May 22, 2025

👷 Deploy request for squawkhq pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit b75b1f3

@psteinroe psteinroe changed the title chore/setup regression tests chore: setup regression tests May 22, 2025
@sbdchd
Copy link
Owner

sbdchd commented May 22, 2025

@psteinroe sorry! I merged the other PR and caused a merge conflict with this one!

@psteinroe
Copy link
Contributor Author

@psteinroe sorry! I merged the other PR and caused a merge conflict with this one!

no problem - fixed! :) btw - the glob engine of dir_test does not support brace expansion. I had to split the tests because this did not work:

#[dir_test(
    dir: "$CARGO_MANIFEST_DIR/tests/data/",
    glob: "{ok,err}/*.sql",
)]

kodiakhq bot pushed a commit that referenced this pull request May 23, 2025
follow-up for #486

reference:  https://www.postgresql.org/docs/current/sql-explain.html

> boolean: Specifies whether the selected option should be turned on or off. You can write TRUE, ON, or 1 to enable the option, and FALSE, OFF, or 0 to disable it. The boolean value can also be omitted, in which case TRUE is assumed.

makes 5 more regression tests pass 🎉

added one todo item - i was not sure if its possible to know if its specifically 1 or 0. let me know if it is! :)
@sbdchd
Copy link
Owner

sbdchd commented May 23, 2025

fyi, I merged the other PR!

@psteinroe psteinroe closed this May 23, 2025
@psteinroe psteinroe deleted the chore/setup-regression-tests branch May 23, 2025 14:00
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

Successfully merging this pull request may close these issues.

2 participants