Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cargo/deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ allow = [
"ISC",
"MIT",
"Unicode-3.0",
"Unicode-DFS-2016",
"Zlib",
]
9 changes: 9 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[test-groups]
# Guide doc tests build Rust project (which already uses all available CPU
# cores) and reuse the target directory (which is shared across all tests),
# so we limit the number of concurrently running guide doc tests to 1
doc-code-blocks = { max-threads = 1 }

[[profile.default.overrides]]
filter = 'package(cot-test)'
test-group = 'doc-code-blocks'
132 changes: 125 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"cot-codegen",
"cot-core",
"cot-macros",
"cot-test",
# Examples
"examples/admin",
"examples/custom-error-pages",
Expand Down Expand Up @@ -81,9 +82,11 @@ clap = { version = "4.5.60", features = ["deprecated"] }
clap-verbosity-flag = { version = "3", default-features = false }
clap_complete = "4"
clap_mangen = "0.3.0"
comrak = { version = "0.51", default-features = false }
cot = { version = "0.6.0", path = "cot" }
cot_core = { version = "0.6.0", path = "cot-core" }
cot_codegen = { version = "0.6.0", path = "cot-codegen" }
cot-cli = { version = "0.6.0", path = "cot-cli" }
cot_core = { version = "0.6.0", path = "cot-core" }
cot_macros = { version = "0.6.0", path = "cot-macros" }
criterion = "0.8"
darling = "0.23"
Expand All @@ -105,11 +108,12 @@ http = "1.4"
http-body = "1"
http-body-util = "0.1.3"
humantime = "2"
idna = { version = "1.1", default-features = false }
indexmap = "2"
insta = { version = "1", features = ["filters"] }
insta-cmd = "0.6"
lettre = { version = "0.11.20", default-features = false }
idna = { version = "1.1", default-features = false }
libtest-mimic = "0.8"
mime = "0.3"
mime_guess = { version = "2", default-features = false }
mockall = "0.14"
Expand Down
27 changes: 27 additions & 0 deletions cot-test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[package]
name = "cot-test"
description = "Internal crate containing various integrations tests and test utilities."
version = "0.1.0"
edition.workspace = true
rust-version.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
keywords.workspace = true
readme.workspace = true
authors.workspace = true

[dependencies]
comrak.workspace = true
cot-cli = { workspace = true, features = ["test_utils"] }
cot.workspace = true
glob.workspace = true
libtest-mimic.workspace = true

[lints]
workspace = true

[[test]]
name = "doc_code_blocks"
path = "tests/doc_code_blocks.rs"
harness = false
Loading
Loading