Skip to content

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

Merged
abonander merged 11 commits intolaunchbadge:mainfrom
joeydewaal:path-fix
Aug 26, 2024
Merged

Fix (#3395) sqlx::test macro in 0.8#3403
abonander merged 11 commits intolaunchbadge:mainfrom
joeydewaal:path-fix

Conversation

@joeydewaal
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

@joeydewaal
Copy link
Copy Markdown
Contributor Author

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

@abonander
Copy link
Copy Markdown
Collaborator

@joeydewaal
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

@joeydewaal run cargo fmt?

@joeydewaal
Copy link
Copy Markdown
Contributor Author

Yes of course!

@abonander abonander merged commit 1d8eb2a into launchbadge:main Aug 26, 2024
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