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.

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

Example Commands

Reference