{"id":17011807,"url":"https://github.com/superzazu/uunit","last_synced_at":"2025-03-22T13:23:49.737Z","repository":{"id":87864877,"uuid":"193081553","full_name":"superzazu/uunit","owner":"superzazu","description":"micro unit testing library in C99 distributed under the zlib license","archived":false,"fork":false,"pushed_at":"2019-06-21T10:54:52.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T12:49:36.659Z","etag":null,"topics":["tdd","test","testing","unittest"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superzazu.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":"2019-06-21T10:44:37.000Z","updated_at":"2022-09-20T21:04:27.000Z","dependencies_parsed_at":"2023-03-13T18:36:24.122Z","dependency_job_id":null,"html_url":"https://github.com/superzazu/uunit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superzazu%2Fuunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superzazu%2Fuunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superzazu%2Fuunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superzazu%2Fuunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superzazu","download_url":"https://codeload.github.com/superzazu/uunit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244960768,"owners_count":20538880,"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":["tdd","test","testing","unittest"],"created_at":"2024-10-14T06:08:06.290Z","updated_at":"2025-03-22T13:23:49.727Z","avatar_url":"https://github.com/superzazu.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uunit\n\nmicro unit testing library in C99 distributed under the zlib license.\n\nExample:\n\n```c\n#include \u003cstdio.h\u003e\n\n#define UUNIT_COLORS 1 // to enable colored output\n// #define UUNIT_FAILFAST 1 // to stop on first fail\n#include \"uunit.h\"\n\nadd_test(test_one) {\n    assert_true(3 == 3);\n}\n\nadd_test(test_two) {\n    assert_eq(10, 16);\n}\n\nadd_test(test_three) {\n    assert_gt(42, 1);\n}\n\nint main(void) {\n    run_test(test_one);\n    run_test(test_two);\n    run_test(test_three);\n\n    print_report();\n\n    return uunit_nb_tests_failed != 0;\n}\n```\n\nOutputs:\n\n```\n[PASS] test_one\nexample.c:12:test_two: error: assertion failed: (10) == (16)\n[FAIL] test_two\n[PASS] test_three\n\nREPORT: executed 3 tests, 1 failed (0 skipped).\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperzazu%2Fuunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperzazu%2Fuunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperzazu%2Fuunit/lists"}