caramelo
Caramelo (caramel in Portuguese) is a comprehensive, production-ready unit testing framework for Rust with a focus on simplicity and ease of use.
Features
Several useful matchers:
- logical: eq, ne, le, lt, ge and gt
- range: between
- array: item, len
- wildcard: any
- string: contains, starts-with, ends-with
Assertion traits
- Is: is, is_eq and is_ne
Quick Start
Add caramelo to your Cargo.toml:
= { = "0.1.0-beta.1" }
Usage Example
Here's how simple it is to create unit tests with caramelo:
use ;
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Author
Rogerio Pereira Araujo rogerio.araujo@gmail.com