{"id":15691647,"url":"https://github.com/madarauchiha-314/auto-unit-test","last_synced_at":"2025-05-08T01:13:36.725Z","repository":{"id":81503925,"uuid":"153128504","full_name":"MadaraUchiha-314/auto-unit-test","owner":"MadaraUchiha-314","description":"No writing unit tests again!","archived":false,"fork":false,"pushed_at":"2018-12-08T08:58:12.000Z","size":49,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T01:13:30.470Z","etag":null,"topics":["c","unit-test"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MadaraUchiha-314.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-10-15T14:31:43.000Z","updated_at":"2022-02-08T23:29:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f0eec40-643a-4124-a2b2-cf12779954c2","html_url":"https://github.com/MadaraUchiha-314/auto-unit-test","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/MadaraUchiha-314%2Fauto-unit-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadaraUchiha-314%2Fauto-unit-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadaraUchiha-314%2Fauto-unit-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadaraUchiha-314%2Fauto-unit-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MadaraUchiha-314","download_url":"https://codeload.github.com/MadaraUchiha-314/auto-unit-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252978783,"owners_count":21834917,"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","unit-test"],"created_at":"2024-10-03T18:22:39.236Z","updated_at":"2025-05-08T01:13:36.685Z","avatar_url":"https://github.com/MadaraUchiha-314.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# auto-unit-test [![CircleCI](https://circleci.com/gh/MadaraUchiha-314/auto-unit-test/tree/master.svg?style=svg)](https://circleci.com/gh/MadaraUchiha-314/auto-unit-test/tree/master) [![codecov](https://codecov.io/gh/MadaraUchiha-314/auto-unit-test/branch/master/graph/badge.svg)](https://codecov.io/gh/MadaraUchiha-314/auto-unit-test) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/ed6ebb0171c84da6b1cef076e56c3cf4)](https://www.codacy.com/app/rohithr31/auto-unit-test?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=MadaraUchiha-314/auto-unit-test\u0026amp;utm_campaign=Badge_Grade)\n\nNo writing unit tests again!\n\n## Goals\n- Generate unit tests from a given JSON file which contains the test.\n    - This project is currently at this stage.\n- Generate the above JSON file automatically by parsing the code.\n- Given the current state, execute the unit tests, take a snapshot and save it for later comparison.\n\n## Generating and running a test\n- To generate a unit-test for all suites\n```shell\nmake all\n```\n- To run all unit tests generated.\n```shell\nmake test-all\n```\n- To generate a unit-test for a suite, say `examples/C/simple-functions/simple-functions-test.json`\n```shell\nmake c-unit-tests test=examples/C/simple-functions/simple-functions-test\n```\n- To run a unit test.\n```shell\nmake test-c-unit-tests test=examples/C/simple-functions/simple-functions-test\n```\n\n## Current State.\n\n|Functionality|Status|Library Code|Auto Generated Unit Test|\n|--- |--- |--- |--- |\n|Simple C function working.|✅|[Simple C function]|[Simple C function Unit Test]|\n|C functions which takes struct argument.|✅|[Simple Struct function]|[Simple Struct function Unit Test]|\n|C functions which takes nested struct argument.|✅|[Nested Struct function]|[Nested Struct function Unit Test]|\n|C functions which returns nested struct value.|✅|[Struct Return function]|[Struct Return function Unit Test]|\n|C functions which takes pointer arguments.|✅|[Pointer Function]|[Pointer Function Unit Test]|\n|C functions which returns pointer.|✅|[Pointer Function]|[Pointer Function Unit Test]|\n|Support for all primitive data-types.|✅|[Data Type Function]|[Data Type Unit Test]|\n|C functions which takes arrays (through pointer)||||\n|Monitoring side-effects and global changes|||||\n\n[Simple C function]: examples/C/simple-functions/simple-functions.h\n[Simple C function Unit Test]: examples/C/simple-functions/simple-functions-test.c\n\n[Simple Struct function]: examples/C/simple-structs/simple-structs.h\n[Simple Struct function Unit Test]: examples/C/simple-structs/simple-structs-test.c\n\n[Nested Struct function]: examples/C/nested-structs/nested-structs.h\n[Nested Struct function Unit Test]: examples/C/nested-structs/nested-structs-test.c\n\n[Struct Return function]: examples/C/struct-return/struct-return.h\n[Struct Return function Unit Test]: examples/C/struct-return/struct-return-test.c\n\n[Pointer Function]: examples/C/pointers/pointers.h\n[Pointer Function Unit Test]: examples/C/pointers/pointers-test.c\n\n[Data Type Function]: examples/C/data-types/data-types.h\n[Data Type Unit Test]: examples/C/data-types/data-types-test.c\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadarauchiha-314%2Fauto-unit-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadarauchiha-314%2Fauto-unit-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadarauchiha-314%2Fauto-unit-test/lists"}