This crate is meant to be used as a dev dependency. Its purpose is to provides the testing support to help reduce boilerplate, duplication, and provides standardization.
The following macros are provided:
- op_tests_mod
- provides support to configure logging for tests
- logs test execution time
- op_test
- used to generate test functions that leverage the
tests
module generated by op_tests_mod!()
- used to generate test functions that leverage the
Example
extern crate oysterpack_testing;
op_tests_mod!;
Example - configuring target log levels
extern crate oysterpack_testing;
op_tests_mod!
Notes
- the log, fern, and chrono crates are re-exported because they are used by the macros. Re-exporting them makes the macros self-contained.