mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-11 10:46:25 +03:00
Disable benchmarks in unit tests. (#376)
This means that we can pass arguments to the Criterion benchmarks because the test binaries do not try and run. For example, if you run this: ``` cargo bench -- --warm-up-time=1 --measurement-time=1 ``` … it will currently fail, because it will also pass these arguments to the tests. Disabling the benchmarks for the tests fixes this. V3_GIT_ORIGIN_REV_ID: 10fe0683b82c506e1a11b24ca0a0a4041e37b655
This commit is contained in:
parent
b57a8f9f02
commit
aa11947067
@ -4,6 +4,14 @@ version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[lib]
|
||||
bench = false
|
||||
|
||||
[[bin]]
|
||||
name = "agent"
|
||||
path = "src/bin/agent/main.rs"
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
ndc-client = { git = "https://github.com/hasura/ndc-spec.git", tag = "v0.1.0" }
|
||||
indexmap = "2"
|
||||
|
@ -6,11 +6,13 @@ license.workspace = true
|
||||
|
||||
build = "build.rs"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[lib]
|
||||
bench = false
|
||||
|
||||
[[bin]]
|
||||
name = "engine"
|
||||
path = "bin/engine/main.rs"
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
indexmap = { version = "2", features = ["serde"] }
|
||||
|
@ -4,7 +4,8 @@ version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[lib]
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
open-dds = { path = "../open-dds" }
|
||||
|
@ -4,7 +4,8 @@ version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[lib]
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
open-dds = { path = "../open-dds" }
|
||||
|
@ -4,7 +4,8 @@ version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[lib]
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
thiserror = "1.0"
|
||||
|
@ -8,6 +8,7 @@ license = "Apache-2.0"
|
||||
[[bin]]
|
||||
name = "hasura-dev-auth-webhook"
|
||||
path = "src/main.rs"
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.80"
|
||||
|
@ -4,7 +4,8 @@ version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[lib]
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
thiserror = "1.0"
|
||||
|
@ -4,7 +4,8 @@ version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[lib]
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
derive_more = "0.99.17"
|
||||
|
@ -3,12 +3,13 @@ name = "opendds-derive"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
darling = "0.13"
|
||||
proc-macro2 = "1.0"
|
||||
quote = "1.0"
|
||||
syn = { version = "1.0", features = ["full"] }
|
||||
convert_case = "0.6.0"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
@ -4,7 +4,8 @@ version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[lib]
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
derive_more = "0.99.17"
|
||||
|
Loading…
Reference in New Issue
Block a user