Popularity
2.6
Stable
Activity
0.0
-
59
3
4

Monthly Downloads: 35
Programming language: Rust
License: MIT License
Tags: Development Tools     Build System     Cargo     Notify     Test     Notification     Testify    
Latest version: v0.3.0

cargo-testify alternatives and similar packages

Based on the "Cargo" category

Do you think we are missing an alternative of cargo-testify or a related project?

Add another 'Cargo' Package

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
  • barskern Ole Martin Ruud - migrate from clap to structopt


*Note that all licence references and agreements mentioned in the cargo-testify README section above are relevant to that project's source code only.