Skip to content

Help with testing Rust binary crates with "features" (compile-time flags)

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

scale-rs/test-binary-features

Repository files navigation

Automate testing your crate features

This crate helps you with testing any combinations of your crate's features programmatically. All with one cargo test.

You'll need to set up auxiliary crates. Also, this can't run unit tests (#[test]) as-is - you'll need to refactor those functions and have them called from binary crate(s) within the same project.

Documentation License Crates Status

Based on crates.io/crates/test-binary (gitlab.com/rust-test-binary/test-binary). Using epage/_rust Rust project template.

Limitation: cargo check

cargo check run on a crate that uses test-binary-features to invoke any other crates can't check (traverse) those other crates.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Help with testing Rust binary crates with "features" (compile-time flags)

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published