8 releases

0.4.1 Apr 18, 2025
0.4.0 Apr 18, 2025
0.3.2 Apr 16, 2025
0.2.2 Apr 12, 2025
0.1.0 Apr 7, 2025

#180 in Testing

Download history 91/week @ 2025-04-02 343/week @ 2025-04-09 439/week @ 2025-04-16 13/week @ 2025-04-23

886 downloads per month

BSD-3-Clause

150KB
3.5K SLoC

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

Dependencies

~1.3–2.1MB
~38K SLoC