{"id":51115178,"url":"https://github.com/ararog/caramelo","last_synced_at":"2026-06-24T21:01:18.447Z","repository":{"id":352704891,"uuid":"1215397199","full_name":"ararog/caramelo","owner":"ararog","description":"Idiomatic unit test framework for rust","archived":false,"fork":false,"pushed_at":"2026-06-17T21:12:54.000Z","size":166,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-17T23:12:45.330Z","etag":null,"topics":["assertions","rust","testing","testing-framework","unit-testing"],"latest_commit_sha":null,"homepage":"https://ararog.github.io/caramelo/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ararog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE-APACHE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"ararog"}},"created_at":"2026-04-19T21:24:00.000Z","updated_at":"2026-06-17T21:12:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ararog/caramelo","commit_stats":null,"previous_names":["ararog/caramelo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ararog/caramelo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ararog%2Fcaramelo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ararog%2Fcaramelo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ararog%2Fcaramelo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ararog%2Fcaramelo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ararog","download_url":"https://codeload.github.com/ararog/caramelo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ararog%2Fcaramelo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34749211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assertions","rust","testing","testing-framework","unit-testing"],"created_at":"2026-06-24T21:01:16.226Z","updated_at":"2026-06-24T21:01:18.336Z","avatar_url":"https://github.com/ararog.png","language":"Rust","funding_links":["https://github.com/sponsors/ararog"],"categories":[],"sub_categories":[],"readme":"# caramelo\n\n[![Crates.io downloads](https://img.shields.io/crates/d/caramelo)](https://crates.io/crates/caramelo) [![crates.io](https://img.shields.io/crates/v/caramelo?style=flat-square)](https://crates.io/crates/caramelo) [![Build Status](https://github.com/ararog/caramelo/actions/workflows/rust.yml/badge.svg?event=push)](https://github.com/ararog/caramelo/actions/workflows/rust.yml) ![Crates.io MSRV](https://img.shields.io/crates/msrv/caramelo) [![Documentation](https://docs.rs/caramelo/badge.svg)](https://docs.rs/caramelo/latest/caramelo) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ararog/caramelo/blob/main/LICENSE.md)  [![codecov](https://codecov.io/gh/ararog/caramelo/graph/badge.svg?token=T0HSBAPVSI)](https://codecov.io/gh/ararog/caramelo)\n\n**Caramelo** (caramel in Portuguese, named after popular brazilian dog) is a comprehensive, production-ready unit testing framework for Rust with a focus on simplicity and ease of use.\n\n## Features\n\nSeveral useful matchers:\n\n- relational: eq, ne, le, lt, ge and gt\n- logical: and, or\n- range: 1..2 or 1.. or ..2 and its variants\n- array: item, len, \\_in_\n- wildcard: any\n- string: contains, starts-with, ends-with\n- http: method, path, header, header_value, body\n- json: exact_json_body, partial_json_body\n- xml: exact_xml_body, partial_xml_body\n- others: custom\n\n## Quick Start\n\nAdd caramelo to your `Cargo.toml`:\n\n```toml\ncaramelo = { version = \"0.1.0\" }\n```\n\n## Usage Example\n\nHere's how simple it is to create unit tests with caramelo:\n\n```rust\nuse caramelo::{expect, matchers::eq, assertions::Is};\n\n/// Test equality matcher\n\n#[test]\nfn test_equal() {\n    expect(1).to_be(eq(1));\n}\n\n#[test]\n#[should_panic(expected = \"Expected 1 to be equals to 2\")]\nfn test_not_equal() {\n    expect(1).to_be(eq(2));\n}\n```\n\n## Subprojects\n\n### [caramelo](https://github.com/ararog/caramelo)\n\nBase crate for caramelo.\n\n### [caramelo-macros](https://github.com/ararog/caramelo/tree/develop/caramelo-macros)\n\nA crate with collection of convenience macros for caramelo.\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0\n  (LICENSE-APACHE or \u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT license\n  (LICENSE-MIT or \u003chttps://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n## Author\n\nRogerio Pereira Araujo \u003crogerio.araujo@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fararog%2Fcaramelo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fararog%2Fcaramelo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fararog%2Fcaramelo/lists"}