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:
Samir Talwar 2024-03-21 13:41:31 +01:00 committed by hasura-bot
parent b57a8f9f02
commit aa11947067
10 changed files with 28 additions and 10 deletions

View File

@ -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"

View File

@ -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"] }

View File

@ -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" }

View File

@ -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" }

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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"