{"id":16695151,"url":"https://github.com/mitya57/cxxunit","last_synced_at":"2025-03-14T00:25:21.227Z","repository":{"id":66363472,"uuid":"106941938","full_name":"mitya57/cxxunit","owner":"mitya57","description":"Simple C++ unit testing library","archived":false,"fork":false,"pushed_at":"2024-03-06T10:31:02.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T19:31:09.270Z","etag":null,"topics":["cplusplus","header-only","testing","unit-testing"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitya57.png","metadata":{"files":{"readme":"README.mkd","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-10-14T16:06:55.000Z","updated_at":"2024-03-06T10:31:06.000Z","dependencies_parsed_at":"2024-11-20T00:05:09.945Z","dependency_job_id":null,"html_url":"https://github.com/mitya57/cxxunit","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"fe3361e03887203270203ee1d5c5f437fd7a48d7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitya57%2Fcxxunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitya57%2Fcxxunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitya57%2Fcxxunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitya57%2Fcxxunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitya57","download_url":"https://codeload.github.com/mitya57/cxxunit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243501157,"owners_count":20300852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cplusplus","header-only","testing","unit-testing"],"created_at":"2024-10-12T17:05:40.060Z","updated_at":"2025-03-14T00:25:21.173Z","avatar_url":"https://github.com/mitya57.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a simple C++ unit testing library. It requires C++11 or newer.\n\nUsage example:\n\n```c++\n#include \"testing.hpp\"\n\nstruct test_FirstAndTrivial: TestCase {\n  void run() override {\n    unsigned int val = 1;\n\n    ASSERT_EQUAL((val + 1) / 2, 1);\n  }\n};\n\nREGISTER_TEST(test_FirstAndTrivial, \"Arithmetic operations\");\n```\n\nIn the `run` method, the following macros are supported:\n\n- `ASSERT_TRUE(expression)`;\n- `ASSERT_FALSE(expression)`;\n- `ASSERT_RELATION(e1, rel, e2)`, for example `ASSERT_RELATION(e1, \u003c=, e2)`;\n- `ASSERT_EQUAL(e1, e2)`;\n- `ASSERT_ALMOST_EQUAL(e1, e2, precision)`;\n- `ASSERT_FLOATS_EQUAL(e1, e2)` — for fuzzy comparison of floats and doubles;\n- `ASSERT_STRINGS_EQUAL(e1, e2)` — with better formatted output for strings;\n- `ASSERT_THROWS(exception_class, expression)`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitya57%2Fcxxunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitya57%2Fcxxunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitya57%2Fcxxunit/lists"}