{"id":19633384,"url":"https://github.com/electronvector/catch-with-c","last_synced_at":"2025-04-28T07:30:49.051Z","repository":{"id":87035982,"uuid":"49405534","full_name":"ElectronVector/catch-with-c","owner":"ElectronVector","description":"Using the Catch unit test framework to write BDD-style tests for straight up C.","archived":false,"fork":false,"pushed_at":"2016-01-11T06:06:24.000Z","size":68,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T07:33:01.232Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/ElectronVector.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}},"created_at":"2016-01-11T06:00:22.000Z","updated_at":"2024-08-20T17:34:50.000Z","dependencies_parsed_at":"2023-03-17T15:00:21.324Z","dependency_job_id":null,"html_url":"https://github.com/ElectronVector/catch-with-c","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/ElectronVector%2Fcatch-with-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElectronVector%2Fcatch-with-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElectronVector%2Fcatch-with-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElectronVector%2Fcatch-with-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElectronVector","download_url":"https://codeload.github.com/ElectronVector/catch-with-c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251271084,"owners_count":21562487,"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":[],"created_at":"2024-11-11T12:17:11.581Z","updated_at":"2025-04-28T07:30:48.538Z","avatar_url":"https://github.com/ElectronVector.png","language":"C++","readme":"This is an example for how to use the [Catch unit test framework](https://github.com/philsquared/Catch) to write BDD-style tests for C.\n\n## Requires\n- Rake (via Ruby)\n- g++\n\n## How to run\nRun all the tests with `rake`.\n\n## Details\nThe module under test is the **power_button** which can be found in **power_button.c**. The BDD-style tests can be found in **test_power_button.c**.\n\nCatch is a C++ unit test framework, but the code under test in the power_button module is straight up C. To run the tests, we need to compile everything with g++ (a C++ compiler).\n\nSee the Rakefile for more details about how everything is built.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectronvector%2Fcatch-with-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectronvector%2Fcatch-with-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectronvector%2Fcatch-with-c/lists"}