litmus

Crates.iolitmus
lib.rslitmus
version
sourcesrc
created_at2025-04-07 08:42:02.300293+00
updated_at2025-04-18 11:01:19.011949+00
descriptiona macro-free BDD test harness.
homepage
repositoryhttps://github.com/NTDuck/dcli
max_upload_size
id1623824
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
ntduck (NTDuck)

documentation

README

litmus

a macro-free BDD test harness.
inspired by cucumber and rspec.

Why litmus

With litmus, you can ...

write tests declaratively
  with minimal overhead
   all without using macros.

Major design criteria

Quickstart

Add this to your Cargo.toml:

# ./Cargo.toml

[dev-dependencies]
litmus = "0.4.1"

Disable the default harness for your test targets:

# ./Cargo.toml

[[test]]
name = ...
path = ...
harness = false

For instructions on writing tests, refer to the section below.

Examples

Examples are available in the examples/ directory.

cargo test --example main -p litmus
cargo nextest run --example main -p litmus
Commit count: 0

cargo fmt