Configure nextest to run database tests serially

This commit is contained in:
Quentin Gliech
2025-01-20 09:52:16 +01:00
parent e6967210cc
commit 8a61b7a747
2 changed files with 18 additions and 6 deletions

14
.config/nextest.toml Normal file
View File

@@ -0,0 +1,14 @@
[test-groups]
database = { max-threads = 1 }
[profile.default]
retries = 1
# sqlx has a problem with nextest, as it uses a process-local semaphore to have
# tests use different databases. This doesn't work with nextest, as it has a
# process-per-test model, which is why we need to make sure only one test uses
# the database at a time.
# See https://github.com/launchbadge/sqlx/pull/3334
[[profile.default.overrides]]
filter = 'package(mas-handlers) or package(mas-storage-pg)'
test-group = 'database'