-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
path
argument to [sqlx::test]
broken in 0.8.0
#3395
Comments
@praseodym, I am experiencing the same issue. I took a quick peek at the commits between v0.7.4 and v0.8.0 and found the following commit that changes code responsible for the fixtures arguments: 8f926e5 This possibly could have caused this regression. @saiintbrisson @abonander would you be able to shed some light on the situation? |
Oof, I'll take a look into this, thanks for letting me know. |
There's an open PR already: #3403 |
* 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
0.8.1 contains a regression that prevents tests from working: launchbadge/sqlx#3395 Signed-off-by: Jonathon Jongsma <[email protected]>
* 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
* 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
Bug Description
The
path
argument to the[sqlx::test]
macro seems broken in 0.8.0.cargo check
reports the following error after updating from sqlx 0.7.4 to 0.8.0:This code is similar to the usage documented in the
[sqlx::test]
docs for 0.8.0:#[sqlx::test(fixtures(path = "./fixtures", scripts("users", "posts")))]
Info
["runtime-tokio", "sqlite", "chrono"]
rustc --version
: rustc 1.80.0 (051478957 2024-07-21)The text was updated successfully, but these errors were encountered: