{"id":20821240,"url":"https://github.com/mrtkp9993/unittestcpp","last_synced_at":"2025-05-07T16:23:01.105Z","repository":{"id":107928744,"uuid":"304688740","full_name":"mrtkp9993/UnitTestCpp","owner":"mrtkp9993","description":"Simple header-only C++ library for unit-testing.","archived":false,"fork":false,"pushed_at":"2021-01-08T19:23:53.000Z","size":15,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T11:51:09.608Z","etag":null,"topics":["cpp","cpp-library","cpp11","header-only","testing","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrtkp9993.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-10-16T17:00:09.000Z","updated_at":"2023-01-11T19:24:46.000Z","dependencies_parsed_at":"2023-06-09T23:31:19.073Z","dependency_job_id":null,"html_url":"https://github.com/mrtkp9993/UnitTestCpp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtkp9993%2FUnitTestCpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtkp9993%2FUnitTestCpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtkp9993%2FUnitTestCpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtkp9993%2FUnitTestCpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrtkp9993","download_url":"https://codeload.github.com/mrtkp9993/UnitTestCpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252913327,"owners_count":21824144,"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":["cpp","cpp-library","cpp11","header-only","testing","testing-tools"],"created_at":"2024-11-17T22:11:44.239Z","updated_at":"2025-05-07T16:23:01.097Z","avatar_url":"https://github.com/mrtkp9993.png","language":"C++","readme":"# Unit Test C++\n\nHeader-only simple unit-testing library for C++.\n\n[![DOI](https://zenodo.org/badge/304688740.svg)](https://zenodo.org/badge/latestdoi/304688740)\n\n\n## Usage\n\nJust include ```test.hpp``` in your app and use it like in ```main.cpp```:\n\n```c++\n#include \u003cfunctional\u003e\n\n#include \"test.hpp\"\n\nint main() {\n    std::vector\u003cstd::function\u003cbool()\u003e\u003e test_funcs = {\n            []() { return 1 == 1; }, // TEST 1\n            []() { return !(1 == 2); },   // TEST 2\n            []() { return 1 == 2; } // TEST 3\n    };\n\n    Test tests(test_funcs);\n    tests.Run();\n\n    return 0;\n}\n```\n\nExample result:\n\n```\nTest 3 FAILED\nRun completed, # of failed tests/total tests: 1/3\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtkp9993%2Funittestcpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrtkp9993%2Funittestcpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtkp9993%2Funittestcpp/lists"}