Skip to content

Commit 56e5693

Browse files
committed
Add integration tests
1 parent f610647 commit 56e5693

33 files changed

+1584
-17
lines changed

Cargo.lock

Lines changed: 214 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ resolver = "2"
1212
[workspace.dependencies]
1313
anstyle = "1.0.7"
1414
anyhow = "1.0.83"
15+
assert_cmd = "2.0.14"
16+
assert_fs = "1.1.1"
1517
clap = "4.5.4"
1618
codepage = "0.1.1"
1719
criterion = "0.5.1"
@@ -25,6 +27,7 @@ itertools = "0.12.1"
2527
log = "0.4"
2628
memchr = "2.7.2"
2729
paste = "1.0.15"
30+
predicates = "3.1.0"
2831
rand = "0.8.5"
2932
rayon = "1.10.0"
3033
serde = "1.0.201"

front-end/Cargo.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name = "pasfmt"
33
version = "0.3.0+dev"
44
edition = "2021"
55

6+
# To allow splitting integration tests into separate files without creating multiple test binaries
7+
autotests = false
8+
69
[dependencies]
710
encoding_rs = { workspace = true, features = ["serde"] }
811
pasfmt-core = { path = "../core" }
@@ -14,16 +17,24 @@ log = { workspace = true }
1417
anyhow = { workspace = true }
1518

1619
[target.'cfg(windows)'.dependencies]
17-
windows-sys = { workspace = true, features = ["Win32_Globalization"] }
20+
windows-sys = { workspace = true, features = ["Win32_Globalization", "Win32_System_IO"] }
1821
codepage = { workspace = true }
1922

2023
[dev-dependencies]
2124
criterion = { workspace = true, features = ["html_reports"] }
2225
walkdir = { workspace = true }
26+
assert_cmd = { workspace = true }
27+
assert_fs = { workspace = true }
28+
predicates = { workspace = true }
29+
glob = { workspace = true }
2330

2431
[[bench]]
2532
name = "benchmark_submodules"
2633
harness = false
2734

35+
[[test]]
36+
name = "integration"
37+
path = "tests/tests.rs"
38+
2839
[lib]
2940
bench = false

0 commit comments

Comments
 (0)