docs.rs failed to build plague-0.6.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Plague
Parametrized tests tools for Rust
What
This rustc
plugin adds a macro to help you make parametrized tests:
// Basic usage
plague!
// You can also specify the expected value, Plague will `assert_eq!` the result for you
plague!
// And you can call functions defined somewhere else or give meaningful names to test cases
plague!
Why
The plugin will generate one test function for each parameter set, this way,
running cargo test
will show each failed value, instead of just one:
running 8 tests
test pos#4 ... ok
test pos#2 ... FAILED
test pos#3 ... FAILED
test pos#5 ... ok
test pos'empty ... ok
test pos'not_found ... ok
test pos'unary ... FAILED
test without_plague ... FAILED
failures:
---- pos#2 stdout ----
thread 'pos#2' panicked at 'test failed: got `None`, expected `Some(0)`', examples/cmp.rs:15
---- pos#3 stdout ----
thread 'pos#3' panicked at 'test failed: got `Some(2)`, expected `Some(0)`', examples/cmp.rs:15
---- pos'unary stdout ----
thread 'pos'unary' panicked at 'test failed: got `None`, expected `Some(0)`', examples/cmp.rs:15
---- without_plague stdout ----
thread 'without_plague' panicked at 'assertion failed: `(left == right)` (left: `None`, right: `Some(0)`)', examples/cmp.rs:41
failures:
pos#2
pos#3
pos'unary
without_plague
test result: FAILED. 4 passed; 4 failed; 0 ignored; 0 measured