Skip to content

monsieurbadia/unitest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages