mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
Ignore tests that are no longer used.
Each time a library or binary is added, that requires compilation to create the *empty* test harness, which then is executed and takes multiple seconds to start up, do nothing, and return success. This removes test's for libraries that aren't actually using or running any tests. Additionally, each time a new test binary is added, that adds a ton of compilation time, but also test execution time as the binary for each test runner must start up, execute, and shutdown. So this merges all the testkit integration tests to a single running which significantly speeds up test execution.
This commit is contained in:
parent
97bf309b3a
commit
73207d82e7
|
@ -16,7 +16,7 @@ repository = { workspace = true }
|
|||
[[bin]]
|
||||
name = "kanidmd"
|
||||
path = "src/main.rs"
|
||||
test = true
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[features]
|
||||
|
|
|
@ -13,7 +13,7 @@ repository = { workspace = true }
|
|||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
test = true
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -5,7 +5,7 @@ edition = { workspace = true }
|
|||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
test = true
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -14,7 +14,7 @@ repository = { workspace = true }
|
|||
[lib]
|
||||
name = "kanidmd_testkit"
|
||||
path = "src/lib.rs"
|
||||
test = true
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[features]
|
||||
|
|
11
server/testkit/tests/DO_NOT_ADD_MORE_TESTS_HERE
Normal file
11
server/testkit/tests/DO_NOT_ADD_MORE_TESTS_HERE
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
DO NOT ADD MORE TESTS TO THIS DIRECTORY
|
||||
|
||||
Add them to the `testkit` directory.
|
||||
|
||||
Each new test in this folder is a separate binary, that must be complied linked and executed. This
|
||||
takes HUGES AMOUNTS OF TIME. It makes tests unbelievably slow.
|
||||
|
||||
If you want to add an integration test, put it into the testkit dir so it becomes part of the
|
||||
single larger integration test runner.
|
||||
|
3
server/testkit/tests/integration_test.rs
Normal file
3
server/testkit/tests/integration_test.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
#![deny(warnings)]
|
||||
|
||||
mod testkit;
|
17
server/testkit/tests/testkit/mod.rs
Normal file
17
server/testkit/tests/testkit/mod.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
mod apidocs;
|
||||
mod domain;
|
||||
mod group;
|
||||
mod http_manifest;
|
||||
mod https_extractors;
|
||||
mod https_middleware;
|
||||
mod identity_verification_tests;
|
||||
mod integration;
|
||||
mod mtls_test;
|
||||
mod oauth2_test;
|
||||
mod person;
|
||||
mod proto_v1_test;
|
||||
mod scim_test;
|
||||
mod self_resources;
|
||||
mod service_account;
|
||||
mod system;
|
||||
mod unix;
|
|
@ -22,14 +22,14 @@ dev-oauth2-device-flow = []
|
|||
[lib]
|
||||
name = "kanidm_cli"
|
||||
path = "src/cli/lib.rs"
|
||||
test = true
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[[bin]]
|
||||
name = "kanidm"
|
||||
path = "src/cli/main.rs"
|
||||
doc = false
|
||||
test = true
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[[bin]]
|
||||
|
|
|
@ -12,8 +12,8 @@ repository = { workspace = true }
|
|||
|
||||
|
||||
[lib]
|
||||
test = false
|
||||
doctest = false
|
||||
test = false
|
||||
|
||||
[features]
|
||||
|
||||
|
|
|
@ -11,6 +11,11 @@ license = { workspace = true }
|
|||
homepage = { workspace = true }
|
||||
repository = { workspace = true }
|
||||
|
||||
[[bin]]
|
||||
name = "kanidm-ipa-sync"
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
clap = { workspace = true, features = ["derive", "env"] }
|
||||
chrono = { workspace = true }
|
||||
|
|
|
@ -11,6 +11,11 @@ license = { workspace = true }
|
|||
homepage = { workspace = true }
|
||||
repository = { workspace = true }
|
||||
|
||||
[[bin]]
|
||||
name = "kanidm-ldap-sync"
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
clap = { workspace = true, features = ["derive", "env"] }
|
||||
chrono = { workspace = true }
|
||||
|
|
|
@ -14,7 +14,7 @@ repository = { workspace = true }
|
|||
[[bin]]
|
||||
name = "orca"
|
||||
path = "src/main.rs"
|
||||
test = true
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -21,28 +21,28 @@ tpm = ["kanidm-hsm-crypto/tpm"]
|
|||
name = "kanidm_unixd"
|
||||
path = "src/bin/kanidm_unixd.rs"
|
||||
required-features = ["unix"]
|
||||
test = true
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[[bin]]
|
||||
name = "kanidm_unixd_tasks"
|
||||
path = "src/bin/kanidm_unixd_tasks.rs"
|
||||
required-features = ["unix"]
|
||||
test = true
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[[bin]]
|
||||
name = "kanidm_ssh_authorizedkeys"
|
||||
path = "src/bin/kanidm_ssh_authorizedkeys.rs"
|
||||
required-features = ["unix"]
|
||||
test = true
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[[bin]]
|
||||
name = "kanidm-unix"
|
||||
path = "src/bin/kanidm-unix.rs"
|
||||
required-features = ["unix"]
|
||||
test = true
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[lib]
|
||||
|
|
Loading…
Reference in a new issue