mimium-test

Crates.iomimium-test
lib.rsmimium-test
version2.0.0-alpha2
sourcesrc
created_at2024-11-18 04:42:55.522736
updated_at2024-11-18 04:42:55.522736
descriptionCommon test modules & basic regression tests for mimium
homepage
repositoryhttps://github.com/tomoyanonymous/mimium-rs/
max_upload_size
id1451779
size27,720
松浦 知也 Matsuura Tomoya (tomoyanonymous)

documentation

README

mimium-test

Common integrated (or regression) test modules and basic integration tests of mimium.

When use test modules from external crate

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.

Commit count: 828

cargo fmt