Standalone Rust command-line tool with child commands for cntryl.
validate-tests: checks Rust tests for naming and AAA conventions.generate-inventory: scans tests and benchmarks and writes an inventory report.summarize-benchmarks: collects benchmark results, compares them to baseline, and writes a report.
If you do not have the repo cloned, install directly from GitHub:
cargo install --git https://github.com/cntryl/tools --lockedIf you are working from a local clone, install from that checkout instead:
cargo install --path /path/to/cntryl-toolsIf you are already in the cntryl-tools repo, this shorter form does the same thing:
cargo install --path .Run them from the repository you want to inspect after install:
cntryl-tools validate-tests
cntryl-tools generate-inventory
cntryl-tools summarize-benchmarksvalidate-tests runs against the current directory by default, so run it from the repo you want to check.
If you do not want to install the tool yet, you can run it with Cargo from any repo:
cargo run --manifest-path <path-to-cntryl-tools-repo>/Cargo.toml -- validate-tests
cargo run --manifest-path <path-to-cntryl-tools-repo>/Cargo.toml -- generate-inventory
cargo run --manifest-path <path-to-cntryl-tools-repo>/Cargo.toml -- summarize-benchmarksIf you are already in the repo you want to inspect, just run the installed commands there:
cntryl-tools validate-tests
cntryl-tools generate-inventory
cntryl-tools summarize-benchmarkssummarize-benchmarks also accepts --product-name and --report-title if you want to override the default report branding.