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

Put Rust and pgrx tests in separate modules #5

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

theory
Copy link
Contributor

@theory theory commented Aug 26, 2024

Since they compile separately, different dependencies can lead to warnings (see pgcentralfoundation/pgrx#1774 for details). So move shared functions to a new test_util module, keep the Rust-only tests in mod test, and keep the pgrx tests in mod tests. I wish I could put the pgrx tests in the required pg_test schema, but it appears that they require that the module be named "tests".

Thanks @eeeebbbbrrrr for suggesting this solution.

Since they compile separately, different dependencies can lead to
warnings (see pgcentralfoundation/pgrx#1774 for details). So move shared
functions to a new `test_util` module, keep the Rust-only tests in `mod
test`, and keep the pgrx tests in `mod tests`. I wish I could put the
pgrx tests in the required `pg_test` schema, but it appears that they
require that the module be named "tests".

Thanks @eeeebbbbrrrr for suggesting this solution.
@theory theory added the bug Something isn't working label Aug 26, 2024
@theory theory self-assigned this Aug 26, 2024
@theory theory merged commit 265bdc5 into main Aug 26, 2024
7 checks passed
@theory theory deleted the fix-test-warning branch August 26, 2024 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant