Crates.io | mimium-test |
lib.rs | mimium-test |
version | 2.0.0-alpha2 |
source | src |
created_at | 2024-11-18 04:42:55.522736 |
updated_at | 2024-11-18 04:42:55.522736 |
description | Common test modules & basic regression tests for mimium |
homepage | |
repository | https://github.com/tomoyanonymous/mimium-rs/ |
max_upload_size | |
id | 1451779 |
size | 27,720 |
Common integrated (or regression) test modules and basic integration tests of mimium.
When you write test for mimium-plugin, you can import this test crate as dev-dependencies
to utilize integrated test modules.
When you use this crate from external crate, you must set OS environment variable TEST_ROOT
to the same location of Cargo.toml
in your crate. Typically, this can be set by making build.rs
at your crate root with the content like this.
fn main() {
println!("cargo:rustc-env=TEST_ROOT={}", env!("CARGO_MANIFEST_DIR"));
}
And you need to set the line to Cargo.toml
in your crate.
...
build = "build.rs"
...
See mimium-symphonia
crate for instance if you want to know more.