1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
[tasks.test-db]
dependencies = [
"test-db-mysql-all",
"test-db-postgres-all"
]
[tasks.test-db-postgres-all]
dependencies = [
"test-db-postgres",
"test-db-tokio-postgres",
"test-db-diesel-postgres"
]
# DB Tests require cleaning beforehand to avoid target conflicts
[tasks.clean-db-postgres]
alias = "clean"
[tasks.test-db-postgres]
dependencies = ["clean-db-postgres"]
command = "cargo"
args = ["test", "--workspace", "--tests", "--features=db-postgres", "postgres", "--", "--skip", "generated"]
[tasks.clean-db-tokio-postgres]
alias = "clean"
[tasks.test-db-tokio-postgres]
dependencies = ["clean-db-tokio-postgres"]
command = "cargo"
args = ["test", "--workspace", "--tests", "--features=db-tokio-postgres", "postgres", "--", "--skip", "generated"]
[tasks.test-db-mysql-all]
dependencies = [
"test-db-diesel-mysql",
]
[tasks.test-db-diesel]
dependencies = [
"test-db-diesel-mysql",
"test-db-diesel-postgres",
]
[tasks.clean-db-diesel-mysql]
alias = "clean"
[tasks.test-db-diesel-mysql]
dependencies = ["clean-db-diesel-mysql"]
command = "cargo"
args = ["test", "--workspace", "--tests", "--features=db-diesel-mysql", "mysql", "--", "--skip", "generated"]
[tasks.clean-db-diesel-postgres]
alias = "clean"
[tasks.test-db-diesel-postgres]
dependencies = ["clean-db-diesel-postgres"]
command = "cargo"
args = ["test", "--workspace", "--tests", "--features=db-diesel-postgres", "postgres", "--", "--skip", "generated"]
|