Skip to main content

Crate use_test

Crate use_test 

Source
Expand description

§use-test

Primitive testing vocabulary facade for RustUse.

§Experimental

use-test is experimental while it remains below 0.3.0.

§Example

use use_test::case::TestCase;
use use_test::expectation::TestExpectation;
use use_test::outcome::TestOutcome;

let case = TestCase::new("empty string trims to empty");
let expectation = TestExpectation::new("", "".trim());
let outcome = TestOutcome::Passed;

assert_eq!(case.name(), "empty string trims to empty");
assert_eq!(expectation.expected(), expectation.actual());
assert!(outcome.is_success());

§Scope

  • Module-style aliases for every focused use-test-* child crate.
  • Primitive metadata for assertions, expectations, cases, suites, outcomes, statuses, fixtures, snapshots, and reports.

§Non-goals

  • Running tests, assertion macros, mocking, snapshot storage, benchmark execution, or CI/reporting integrations.

§License

Licensed under either Apache-2.0 or MIT.

Re-exports§

pub use use_test_assertion as assertion;
pub use use_test_case as case;
pub use use_test_expectation as expectation;
pub use use_test_fixture as fixture;
pub use use_test_outcome as outcome;
pub use use_test_report as report;
pub use use_test_snapshot as snapshot;
pub use use_test_status as status;
pub use use_test_suite as suite;