Procházet zdrojové kódy

Move test disabling out of Justfile

And into the Cargo.toml files. This is the better place to put it, since it's consistent between invocations, and lets us disable _all_ tests for dns_transport.

Also, it turns out I accidentally disabled the Rust integration tests. This commit restores them.
Benjamin Sago před 4 roky
rodič
revize
9dbd5fb43d
4 změnil soubory, kde provedl 12 přidání a 3 odebrání
  1. 2 0
      Cargo.toml
  2. 3 3
      Justfile
  3. 4 0
      dns-transport/Cargo.toml
  4. 3 0
      dns/Cargo.toml

+ 2 - 0
Cargo.toml

@@ -13,9 +13,11 @@ homepage = "https://dns.lookup.dog/"
 license = "EUPL-1.2"
 version = "0.2.0-pre"
 
+
 [[bin]]
 name = "dog"
 path = "src/main.rs"
+doctest = false
 
 
 [workspace]

+ 3 - 3
Justfile

@@ -34,15 +34,15 @@ export DOG_DEBUG := ""
 
 # run unit tests
 @test:
-    cargo test --lib --bin dog --workspace -- --quiet
+    cargo test --workspace -- --quiet
 
 # run unit tests (in release mode)
 @test-release:
-    cargo test --lib --bin dog --workspace --release --verbose
+    cargo test --workspace --release --verbose
 
 # run unit tests (without some features)
 @test-quick:
-    cargo test --lib --bin dog --workspace --no-default-features -- --quiet
+    cargo test --workspace --no-default-features -- --quiet
 
 # run mutation tests
 @test-mutation:

+ 4 - 0
dns-transport/Cargo.toml

@@ -4,6 +4,10 @@ version = "0.2.0-pre"
 authors = ["Benjamin Sago <[email protected]>"]
 edition = "2018"
 
+[lib]
+doctest = false
+test = false
+
 
 [dependencies]
 

+ 3 - 0
dns/Cargo.toml

@@ -4,6 +4,9 @@ version = "0.2.0-pre"
 authors = ["Benjamin Sago <[email protected]>"]
 edition = "2018"
 
+[lib]
+doctest = false
+
 
 [dependencies]