sweet

Very early stage warning! No ongoing maintenance is guaranteed

Basically a jest clone, the sweet crate will set you up with a beautiful test harness and intuitive matchers that are easy on the eyes.

```rust pub use sweet::*;

sweet! { it "works" { assert!("regular assertions and panics".len() > 0);

expect("custom matchers").to_contain("custom")?;

} } ```

Quickstart

  1. edit cargo.toml ```toml [dev-dependencies] sweet = # current version here

    [[test]] name = "sweet" path = "test/sweet.rs" harness = false ```

  2. create file test/sweet.rs ```rust

    ![feature(imported_main)]

    pub use sweet::*;

    sweet! { it "works" { expect(true).tobefalse()?; } } ```

  3. run these commands sh rustup default nightly cargo test --test sweet

Features - Summary

Example Commands

Reference