{"id":51217632,"url":"https://github.com/eggs-cpp/test","last_synced_at":"2026-06-28T05:02:05.520Z","repository":{"id":361593832,"uuid":"1243698641","full_name":"eggs-cpp/test","owner":"eggs-cpp","description":"Eggs.Test is a C++23 test library","archived":false,"fork":false,"pushed_at":"2026-06-25T18:35:22.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-25T19:13:12.583Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eggs-cpp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"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}},"created_at":"2026-05-19T15:22:59.000Z","updated_at":"2026-06-25T18:36:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/eggs-cpp/test","commit_stats":null,"previous_names":["eggs-cpp/test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eggs-cpp/test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggs-cpp%2Ftest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggs-cpp%2Ftest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggs-cpp%2Ftest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggs-cpp%2Ftest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eggs-cpp","download_url":"https://codeload.github.com/eggs-cpp/test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggs-cpp%2Ftest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34877471,"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-28T02:00:05.809Z","response_time":54,"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":[],"created_at":"2026-06-28T05:02:04.426Z","updated_at":"2026-06-28T05:02:05.514Z","avatar_url":"https://github.com/eggs-cpp.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eggs.Test\n\nA minimal C++ test framework. Requires C++23.\n\n## Usage\n\n```cpp\n#include \u003ceggs/test.hpp\u003e\n\nTEST_CASE(my_test, \"adds two integers\") {\n    CHECK(1 + 1 == 2);\n    REQUIRE(1 + 1 == 2);  // stops the test case on failure\n}\n\nint main() {\n    return eggs::test::run();\n}\n```\n\n### Assertion macros\n\n`CHECK(expr)` — evaluates *expr*; reports failure and continues.  \n`REQUIRE(expr)` — like `CHECK`, but stops the current test case on failure.\n\n`CHECK_THROWS(expr)` — passes if *expr* throws any exception.  \n`CHECK_THROWS_AS(ExcType, expr)` — passes if *expr* throws an exception of type *ExcType*; returns `std::exception_ptr` on success.  \n`CHECK_CATCHES_AS(ExcType, expr) { }` — like `CHECK_THROWS_AS`; the body runs on success with the caught exception bound to `exc`.  \n`CHECK_NOTHROW(expr)` — passes if *expr* does not throw.\n\nEvery `CHECK_*` macro has a `REQUIRE_*` variant that stops the test case on failure.\n\n## Build\n\n```bash\ncmake --preset dev-gcc        # or dev-clang, dev-clang-libcxx, dev-msvc\ncmake --build --preset dev-gcc-debug\nctest --preset dev-gcc-debug\n```\n\nSee `CMakePresets.json` for the full list of presets (GCC, Clang, Clang+libc++, MSVC, ASan, TSan).\n\n## CMake integration\n\n```cmake\nfind_package(eggs.test REQUIRED)\ntarget_link_libraries(my_tests PRIVATE Eggs::TestMain)\n```\n\n`Eggs::Test` provides the test macros and the `eggs::test::run()` entry point.  \n`Eggs::TestMain` additionally supplies a `main()` with CLI argument handling.\n\n## License\n\nSee [LICENSE.txt](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggs-cpp%2Ftest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feggs-cpp%2Ftest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggs-cpp%2Ftest/lists"}