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

Fix (#3395) sqlx::test macro in 0.8 #3403

Merged
merged 11 commits into from
Aug 26, 2024
Merged

Conversation

joeydewaal
Copy link
Contributor

@joeydewaal joeydewaal commented Aug 4, 2024

Does your PR solve an issue?

This fixes a regression in the sqlx::test macro in version 0.8.

Fixes: #3395

@abonander
Copy link
Collaborator

@joeydewaal do you mind adding a regression test so we can catch if this happens in the future?

@joeydewaal
Copy link
Contributor Author

Not sure what the best way is to add a test for a proc macro, but this should work!

@abonander
Copy link
Collaborator

@joeydewaal
Copy link
Contributor Author

It looks like there was a test for mysql that should've caught this. I added a test for postgres and sqlite.

@abonander
Copy link
Collaborator

@joeydewaal run cargo fmt?

@joeydewaal
Copy link
Contributor Author

Yes of course!

@abonander abonander merged commit 1d8eb2a into launchbadge:main Aug 26, 2024
79 checks passed
jrasanen pushed a commit to jrasanen/sqlx that referenced this pull request Oct 14, 2024
* fix: fixture macro attribute

* remove extra new line

* add extra new line

* feat: add test for slqx::test macro

* feat: update test for sqlx::test macro

* remove old macro test

* feat: add postgres and sqlite test

* rust format

* cargo fmt

* fix fixtures execution order in test
jrasanen pushed a commit to jrasanen/sqlx that referenced this pull request Oct 14, 2024
* fix: fixture macro attribute

* remove extra new line

* add extra new line

* feat: add test for slqx::test macro

* feat: update test for sqlx::test macro

* remove old macro test

* feat: add postgres and sqlite test

* rust format

* cargo fmt

* fix fixtures execution order in test
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.

path argument to [sqlx::test] broken in 0.8.0
2 participants