Crates.io | testy |
lib.rs | testy |
version | 0.3.1 |
source | src |
created_at | 2023-05-04 09:08:41.758209 |
updated_at | 2023-05-05 11:39:13.32165 |
description | A simple macro for testing Rust code |
homepage | https://github.com/uptudev/testy |
repository | https://github.com/uptudev/testy.git |
max_upload_size | |
id | 856475 |
size | 6,411 |
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.
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.
testy
is distributed under the terms of the MIT license. See the LICENSE file for details.