Registry / testing / test-generator

test-generator

JSON →
library0.3.1rscratesunverified

Generates test functions from filesystem patterns, allowing data-driven tests by enumerating entries matching a glob.

# Cargo.toml [dependencies] test-generator = "0.3.1"
INSTALL
IMPORT
SIG · TEST-GENERATOR
T
test-generator
testingrustv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

test_resources
use test_generator::test_resources;

Generates a test for each .txt file in tests/data/, passing the file path to the test function.

use test_generator::test_resources; #[test_resources("tests/data/*.txt")] fn test_file(path: &str) { let content = std::fs::read_to_string(path).unwrap(); assert!(!content.is_empty()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
Resources
test-generator — cargo add test-generator · libregistry