-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
124 lines (101 loc) · 2.16 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[workspace.package]
version = "1.2.2"
# bump version in intra deps as well
authors = ["Vojtech Kral"]
license = "Apache-2.0"
keywords = ["rust", "cargo", "testing"]
[package]
name = "cargo-fixture"
description = "Surround cargo test with arbitrary Rust setup and teardown code."
version.workspace = true
authors.workspace = true
license.workspace = true
keywords.workspace = true
edition = "2021"
rust-version = "1.74"
[[bin]]
name = "cargo-fixture"
[workspace]
members = [
"crates/lib",
"crates/macros",
]
exclude = [
"examples",
]
[workspace.dependencies]
log = "0.4"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order"] }
smol = "1.3.0"
strum = { version = "0.25.0", features = ["derive"] }
thiserror = "1"
[dependencies]
anyhow = "1"
ctrlc = "3.4.2"
futures-util = "0.3.29"
log.workspace = true
os_str_bytes = { version = "7", features = ["conversions"] }
serde_json.workspace = true
serde.workspace = true
smol.workspace = true
strum.workspace = true
tabular = "0.2.0"
thiserror.workspace = true
cargo-fixture-lib = { version = "=1.2.2", features = ["smol"] }
# Tests
# [patch.'crates-io']
# cargo-fixture-lib = { path = 'crates/lib' }
# cargo-fixture-macros = { path = 'crates/macros' }
[dev-dependencies]
smol-potat = "1.1.2"
[target.'cfg(unix)'.dev-dependencies]
nix = { version = "0.28", features = ["signal"] }
[features]
_fixture = []
# A small util that saves args passed to it
[[test]]
name = "print_args"
test = false
harness = false
# Testing fixtures
[[test]]
name = "fixture_env_var"
test = false
harness = false
[[test]]
name = "fixture_failing_test"
test = false
harness = false
[[test]]
name = "fixture_kv"
test = false
harness = false
[[test]]
name = "fixture_early_exit"
test = false
harness = false
[[test]]
name = "fixture_panic_init"
test = false
harness = false
[[test]]
name = "fixture_panic_connected"
test = false
harness = false
[[test]]
name = "fixture_panic_cleanup"
test = false
harness = false
[[test]]
name = "fixture_hang_cleanup"
test = false
harness = false
[[test]]
name = "fixture_args"
test = false
harness = false
[[test]]
name = "fixture_serial"
test = false
harness = false