Skip to content

Watches changes in a rust project, runs test and shows friendly notification

License

Notifications You must be signed in to change notification settings

allenbenz/cargo-testify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/*
  • tests/*
  • 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

About

Watches changes in a rust project, runs test and shows friendly notification

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%