{"id":16891596,"url":"https://github.com/kasramp/c-unit-testing","last_synced_at":"2025-04-11T13:12:49.363Z","repository":{"id":167590645,"uuid":"642876433","full_name":"kasramp/c-unit-testing","owner":"kasramp","description":"Example of how to write unit tests in C programming language","archived":false,"fork":false,"pushed_at":"2023-05-20T21:37:16.000Z","size":34,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T09:21:56.623Z","etag":null,"topics":["c","c-lang","c-language","cprogramming","cunittest"],"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/kasramp.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":"2023-05-19T14:43:31.000Z","updated_at":"2024-08-19T11:43:10.000Z","dependencies_parsed_at":"2023-07-24T06:16:07.554Z","dependency_job_id":null,"html_url":"https://github.com/kasramp/c-unit-testing","commit_stats":null,"previous_names":["kasramp/c-unit-testing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasramp%2Fc-unit-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasramp%2Fc-unit-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasramp%2Fc-unit-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasramp%2Fc-unit-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kasramp","download_url":"https://codeload.github.com/kasramp/c-unit-testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248405769,"owners_count":21098059,"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":["c","c-lang","c-language","cprogramming","cunittest"],"created_at":"2024-10-13T17:08:04.120Z","updated_at":"2025-04-11T13:12:49.355Z","avatar_url":"https://github.com/kasramp.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C unit testing\n\nExample of how to write unit tests in C using [Unity](https://github.com/ThrowTheSwitch/Unity) framework.\n\n## Project structure\n\nThere are three important directories: \n\n- `src` - source code\n- `test` - test cases\n- `unity` - unity test framework source\n\nThe `unity` directory is added as a submodule. Make sure to initialize it after\ncloning the project,\n\n```bash\n$ git submodule init \u0026\u0026 git submodule update --recursive\n```\n\nThe Makefile is the standard Unity make, inspired from [here](http://www.throwtheswitch.org/build/make).\n\nTest file names should start with `Test*` (case sensitive). Each test file should implement the `setUp`,  the`tearDown`, and the `main` functions since this project uses the default Unity test runner.\n\n\n## How to run\n\nYou need to install `make`.\n\nTo run tests:\n\n```bash\n$ make test\n```\n\nTo compile the code:\n\n```bash\n$ make compile\n```\n\nTo generate an executable:\n\n```bash\n$ make install\n```\n\nTo run all at once:\n\n```bash\n$ make\n```\n\nTo clean:\n\n```bash\n$ make clean\n```\n\nTo format the code:\n\n```bash\n$ make format # follow Linux style\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasramp%2Fc-unit-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkasramp%2Fc-unit-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasramp%2Fc-unit-testing/lists"}