#test #notify #notification #cargo #testify

bin+lib cargo-testify

Tool to automatically run tests on your Rust project and notify about the result

3 releases (breaking)

Uses old Rust 2015

0.3.0 Jun 3, 2018
0.2.0 Sep 13, 2017
0.1.0 Sep 2, 2017

#7 in #devtools

25 downloads per month

MIT license

386 lines

Cargo testify

Build Status License

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

rust test with notification


Install prerequisites (for Debian/Ubuntu):

apt-get install -y libdbus-1-dev

Install the crate:

cargo install cargo-testify


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


MIT © Sergey Potapov


  • greyblake Potapov Sergey - creator, maintainer.
  • hoodie Hendrik Sollich - thanks for notify-rust crate
  • waywardmonkeys Bruce Mitchener - fix typos
  • Hugal31 - support of --include option


~190K SLoC