cargo-testify

Crates.iocargo-testify
lib.rscargo-testify
version0.3.0
sourcesrc
created_at2017-09-02 17:34:25.77806
updated_at2018-06-03 18:50:20.814098
descriptionTool to automatically run tests on your Rust project and notify about the result.
homepagehttps://github.com/greyblake/cargo-testify
repositoryhttps://github.com/greyblake/cargo-testify
max_upload_size
id30267
size18,076
Serhii Potapov (greyblake)

documentation

https://docs.rs/cargo-testify

README

Cargo testify

Build Status License

Automatically runs tests on your Rust project and notifies about the result.

rust test with notification

Install

Install prerequisites (for Debian/Ubuntu):

apt-get install -y libdbus-1-dev

Install the crate:

cargo install cargo-testify

Usage

Run within your Rust project:

cargo testify

How does it work?

It watches changes in the project directory, and reacts by running cargo test. The output result is parsed to identify one of the possible outcomes:

  • Tests passed
  • Tests failed
  • Compilation failed

To display notification in the Desktop environment notify-send (Linux) or osascript (MacOS) commands are used.

Watched files

  • src/**/*.rs
  • tests/**/*.rs
  • Cargo.toml
  • Cargo.lock
  • build.rs

Bypassing options to cargo test

Run cargo test --lib on file change:

cargo testify -- --lib

License

MIT © Sergey Potapov

Contributors

  • greyblake Potapov Sergey - creator, maintainer.

  • hoodie Hendrik Sollich - thanks for notify-rust crate

  • waywardmonkeys Bruce Mitchener - fix typos

  • Hugal31 - support of --include option

Commit count: 60

cargo fmt