monsieurbadia / unitest

pocket testing framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unitest

pocket testing framework

Goals

  • small and compact
  • generate reports | json

Usage

[dependencies]
unitest = { git = "https://github.com/monsieurbadia/unitest" }
fn main() {}

unit!(
  test!(should_be_eq, must!(eq: 0, 0));
  test!(should_be_ne, must!(ne: 1, 0));
  test!(should_be_true, must!(truthy: true));
  test!(should_be_false, must!(falsy: false));
  test!(should_be_catched, must!(die: { panic!() } ));
);

Examples

cargo run example testing

About

pocket testing framework

License:MIT License


Languages

Language:Rust 100.0%