{"id":23974716,"url":"https://github.com/kogosoftwarellc/test-c","last_synced_at":"2026-04-21T09:32:32.006Z","repository":{"id":66137266,"uuid":"92551962","full_name":"kogosoftwarellc/test-c","owner":"kogosoftwarellc","description":"A robust and minimal unit testing framework for C.","archived":false,"fork":false,"pushed_at":"2018-04-21T19:54:30.000Z","size":46,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T06:40:46.081Z","etag":null,"topics":["c","framework","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kogosoftwarellc.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":"2017-05-26T22:08:37.000Z","updated_at":"2021-11-17T17:27:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"43f48c08-2ab5-4880-8dee-0bab05a6ad20","html_url":"https://github.com/kogosoftwarellc/test-c","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kogosoftwarellc/test-c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kogosoftwarellc%2Ftest-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kogosoftwarellc%2Ftest-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kogosoftwarellc%2Ftest-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kogosoftwarellc%2Ftest-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kogosoftwarellc","download_url":"https://codeload.github.com/kogosoftwarellc/test-c/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kogosoftwarellc%2Ftest-c/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32085469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["c","framework","unit-testing"],"created_at":"2025-01-07T05:48:42.348Z","updated_at":"2026-04-21T09:32:31.923Z","avatar_url":"https://github.com/kogosoftwarellc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test-c\n\u003e A robust and minimal unit testing framework for C.\n\nShut up and [test some C]\n\n## Why?\n\n* Because every other testing framework for C is a pain.\n\n## Installing\n\n```\ncurl -sk https://raw.githubusercontent.com/kogosoftwarellc/test-c/master/install.bash | bash\n```\n\nOnce that completes, you'll have `~/.test-c/test-c` available in your `PATH`.\n\n## Goals\n\n* Make C Unit Testing fast, easy, and fun.\n* Reduce boilerplate.\n* Keep tests focused on testing, not setup.\n* Do the simplest thing possible.\n* Avoid root priveleges.\n\n## Project Layout\n\ntest-c assumes a project layout similar to the following:\n```\n.\n├── .testcrc\n├── include\n├── README.md\n├── src\n│   ├── add.c\n│   └── add.h\n└── tests\n    └── test_add.c\n```\n\nStarting from scratch?  Let `test-c --init-project` get you up and running quickly.\n\n## Sample Test\n\nHere's what `tests/test_add.c` looks like in our project layout:\n\n```c\n#include \u003ctest-c.h\u003e\n#include \u003cadd.h\u003e\n\nTEST_C_START(it_works)\n  int sum = add(5, 6);\n  TEST_C_ASSERT_INT_EQUAL(sum, 11);\nTEST_C_END\n```\n\nNow when we run `test-c` at the root of our project, we see this:\n\n![running test-c][terminal-run]\n\n## Running\n\n```\ntest-c [OPTIONS] [FILES]\n```\n\nSee `test-c --help` for the full list of options.\n\n### .testcrc\n\nYou can add a `.testcrc` file to the root of your project.  This file will be\nsourced by `test-c`.  You can export environment variables as follows:\n\n* `export TESTC_LD_OPTIONS=\"-lssl\"`\n\n## LICENSE\n\n[MIT](./LICENSE)\n\n[terminal-run]: ./test-c.jpg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkogosoftwarellc%2Ftest-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkogosoftwarellc%2Ftest-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkogosoftwarellc%2Ftest-c/lists"}