agtestcheck-0.1.0 is not a library.
Agnesoft Central Repository
Crates
agplatform
Platform providing env, fs, request and process infrastructure for production and testing. Abstracted over a trait Platform it allows easy swapping production and test implementations:
read_file; // production implementation using std, tokio, reqwest
read_file; // test in-memory implementation with abilities to simulate failures, manipulate time etc.
agtestcheck
Cargo subcommand checking the structure of Rust tests binding the tests code in the production structure and enforcing the rules. See the test rules for details.
// source.rs
;
Run
# cargo install agtestcheck
cargo test-check [<dir|file.rs>]
Possible output:
source.rs:12: test `return_1` should be named `foo_should_<behaviour>` or `foo_<args>_should_<behaviour>`
source.rs:18: comment "testing stuff" should be deleted, start with WHY or GIVEN, WHEN, THEN, AND
source.rs:23: test `ranom_arbitrary_test` should be in the module of its type, trait, function or method