pub use test_better_core::{
ColorChoice, ContextExt, ContextFrame, ErrorKind, OrFail, Payload, RUNNER_ENV,
STRUCTURED_MARKER, SourceLocation, StructuredContextFrame, StructuredError, StructuredPayload,
TestError, TestResult, Trace, TraceEntry, color_choice, set_color_choice,
};
pub use test_better_macros::{
fixture, matches_struct, matches_tuple, matches_variant, test_case, test_with_fixtures,
};
#[cfg(feature = "diff")]
pub use test_better_matchers::diff_lines;
#[cfg(feature = "regex")]
pub use test_better_matchers::matches_regex;
pub use test_better_matchers::{
Backoff, ContainsAll, Description, Elapsed, Float, Items, MatchResult, Matcher, MatcherTuple,
Mismatch, RuntimeAvailable, Sequence, SoftAsserter, SoftScope, Subject, all_of, always_matches,
any_of, at_least_one, between, close_to, contains, contains_all, contains_in_order,
contains_str, define_matcher, ends_with, eq, err, eventually, eventually_blocking,
eventually_blocking_with, eventually_with, every, expect, ge, gt, have_len, is_empty, is_false,
is_finite, is_nan, is_not_empty, is_true, items, le, lt, ne, never_matches, none, not, ok,
satisfies, soft, some, starts_with,
};
pub use test_better_property::{
Config as PropertyConfig, GenError, PropertyFailure, ProptestTree, Runner, Strategy, ValueTree,
any, check, check_with, property,
};
#[cfg(feature = "quickcheck")]
pub use test_better_property::{ArbitraryStrategy, QuickcheckTree, arbitrary};
pub use test_better_snapshot::{
InlineLocation, InlineSnapshotFailure, Redactions, SnapshotFailure, SnapshotMode,
assert_inline_snapshot, assert_snapshot, assert_snapshot_in, normalize_inline_literal,
parse_pending_patch, pending_patch_dir, snapshot_path,
};
pub mod cookbook;
pub mod prelude {
pub use test_better_core::{ContextExt, OrFail, TestError, TestResult};
#[cfg(feature = "regex")]
pub use test_better_matchers::matches_regex;
pub use test_better_matchers::{
all_of, always_matches, any_of, at_least_one, between, close_to, contains, contains_all,
contains_in_order, contains_str, ends_with, eq, err, eventually, eventually_blocking,
every, ge, gt, have_len, is_empty, is_false, is_finite, is_nan, is_not_empty, is_true,
items, le, lt, ne, never_matches, none, not, ok, satisfies, soft, some, starts_with,
};
pub use test_better_macros::{
fixture, matches_struct, matches_tuple, matches_variant, test_with_fixtures,
};
pub use crate::{define_matcher, expect, property};
}