testy

Crates.iotesty
lib.rstesty
version0.3.1
sourcesrc
created_at2023-05-04 09:08:41.758209
updated_at2023-05-05 11:39:13.32165
descriptionA simple macro for testing Rust code
homepagehttps://github.com/uptudev/testy
repositoryhttps://github.com/uptudev/testy.git
max_upload_size
id856475
size6,411
uptu (uptudev)

documentation

https://docs.rs/testy

README

Testy

Crates.io Docs.rs GitHub Workflow Status License

The testy macro prints the status of the test function execution when running cargo test, in a much less verbose fashion. This allows for better looking unit testing.

Usage

To use the testy macro, add it as an attribute to any Rust test function you wish to monitor:

use testy::testy;

testy! {
    fn my_test() {
    	// Do your test here
    }
};

When you run your tests using cargo test, the testy macro will print the status of the test function execution. If the test passes, you will see a green checkmark next to the test name. If the test fails, you will see a red "X" next to the test name.

License

testy is distributed under the terms of the MIT license. See the LICENSE file for details.

Commit count: 0

cargo fmt