Caramelo
Caramelo (caramel in Portuguese) is a comprehensive, production-ready unit testing framework for Rust with a focus on simplicity and ease of use.
Quick Start
Add to your Cargo.toml:
[dependencies]
caramelo = { version = "0.1.0" }
Basic usage:
use caramelo::{expect, matchers::eq};
#[test]
fn test_equal() {
expect(1).to_be(eq(1));
}
#[test]
#[should_panic(expected = "Expected 1 to be equals to 2")]
fn test_not_equal() {
expect(1).to_be(eq(2));
}
Crates
| Crate | Description | Documentation |
|---|---|---|
| caramelo | Core testing framework | |
| caramelo-macros | Convenience macros |
Examples
Check out the examples for complete examples of how to use Caramelo in your projects.
Documentation
Other Projects
- deboa - HTTP client
- easyhttpmock - HTTP mock server
- sofie - Fullstack web framework
- uget - CLI HTTP client
- vetis - Very Tiny Http server
License
This project is licensed under the MIT License.
Author
Rogerio Pereira Araujo rogerio.araujo@gmail.com