Crates.io | litmus |
lib.rs | litmus |
version | |
source | src |
created_at | 2025-04-07 08:42:02.300293+00 |
updated_at | 2025-04-18 11:01:19.011949+00 |
description | a macro-free BDD test harness. |
homepage | |
repository | https://github.com/NTDuck/dcli |
max_upload_size | |
id | 1623824 |
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` |
size | 0 |
a macro-free BDD test harness.
inspired by cucumber and rspec.
litmus
With litmus
, you can ...
write tests declaratively
with minimal overhead
all without using macros.
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 are available in the examples/
directory.
cargo test --example main -p litmus
cargo nextest run --example main -p litmus