Skip to content

Commit 340a062

Browse files
committed
test: add comprehensive test suite for adrs-core
- Add 67 unit tests for types module with test_case and proptest - Add 32 unit tests for config module (load, save, roundtrip) - Add 69 unit tests for parsing (legacy and frontmatter formats) - Add 40 unit tests for template rendering (Nygard, MADR, custom) - Add 40 unit tests for repository operations - Add 15 adr-tools compatibility tests - Add proptest property-based tests for slug and filename generation - Fix unicode handling in slug function (use is_ascii_alphanumeric) - Add support for adr-tools typo 'superceded' in status/link parsing - Total: 244 tests passing
1 parent b82b19d commit 340a062

File tree

10 files changed

+2787
-51
lines changed

10 files changed

+2787
-51
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ assert_cmd = "2"
4747
assert_fs = "1"
4848
predicates = "3"
4949
tempfile = "3"
50+
proptest = "1"
51+
test-case = "3"
5052

5153
# The profile that 'dist' will build with
5254
[profile.dist]

crates/adrs-core/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ regex.workspace = true
2222

2323
[dev-dependencies]
2424
tempfile.workspace = true
25+
proptest.workspace = true
26+
test-case.workspace = true
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Seeds for failure cases proptest has generated in the past. It is
2+
# automatically read and these particular cases re-run before any
3+
# novel cases are generated.
4+
#
5+
# It is recommended to check this file in to source control so that
6+
# everyone who runs the test benefits from these saved cases.
7+
cc 2ee7bcbf9310a86d6dd2d776dedf508f73563df70af09aa93972bafe6dcfbeb4 # shrinks to s = "ꫛ"

0 commit comments

Comments
 (0)