test-results

Crates.iotest-results
lib.rstest-results
version0.1.2
sourcesrc
created_at2022-01-27 05:19:46.262078
updated_at2022-09-01 16:21:14.374494
descriptionA series of utility macros for outputting testing results.
homepage
repositoryhttps://github.com/EYHN/test-results
max_upload_size
id522371
size9,197
EYHN (EYHN)

documentation

README

test-results

A series of utility macros for outputting testing results.

Getting Started

Simply add the test-results crate to your project's Cargo.toml like this:

[dependencies]
test-results = "0"

macros

save!(name: &str, value: &u8)

Save the value as test results.

example:

#[test]
fn test_hello_world() {
    test_results::save!("output.txt", [0x31, 0x32, 0x33]);
}

Run the test and the file will be saved in the test_results folder in the same directory as the source files.

├─ test.rs
└─ test_results
    └─ output.txt

Optionally, you can add test_results/ to the .gitignore file.

echo 'test_results/' >> .gitignore
Commit count: 4

cargo fmt