{"id":13626696,"url":"https://github.com/kristoff-it/zig-doctest","last_synced_at":"2025-04-10T04:04:23.576Z","repository":{"id":40360442,"uuid":"309730977","full_name":"kristoff-it/zig-doctest","owner":"kristoff-it","description":"A tool for testing snippets of code, useful for websites and books that talk about Zig.","archived":false,"fork":false,"pushed_at":"2024-05-27T21:30:14.000Z","size":187,"stargazers_count":79,"open_issues_count":1,"forks_count":21,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-10T04:04:19.858Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","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/kristoff-it.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":"2020-11-03T15:35:48.000Z","updated_at":"2025-01-22T23:22:59.000Z","dependencies_parsed_at":"2023-02-06T06:45:18.199Z","dependency_job_id":"7ef30dbd-278b-45fc-88ca-30136f5c4621","html_url":"https://github.com/kristoff-it/zig-doctest","commit_stats":{"total_commits":68,"total_committers":14,"mean_commits":4.857142857142857,"dds":0.4411764705882353,"last_synced_commit":"725a93787cb1e24e2a183971d52f4ea12d9e1757"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristoff-it%2Fzig-doctest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristoff-it%2Fzig-doctest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristoff-it%2Fzig-doctest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristoff-it%2Fzig-doctest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kristoff-it","download_url":"https://codeload.github.com/kristoff-it/zig-doctest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154984,"owners_count":21056543,"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-08-01T21:02:26.877Z","updated_at":"2025-04-10T04:04:23.542Z","avatar_url":"https://github.com/kristoff-it.png","language":"Zig","funding_links":[],"categories":["Zig","Development Tools","Fundamentals"],"sub_categories":["Documentation and Testing"],"readme":"# Doctest\nA tool for testing snippets of code, useful for websites and books that talk about Zig.\n\n\n## Abstract\nDoctest is a code rendering tool that on top of providing syntax highlighting it also can run your code snippets to ensure that they behave as expected.\n\nOther than the syntax highlighting, this tool gives you the option of testing scripts that are expected to fail. This is something that the built-in testing framework of Zig doesn't allow to do in the same way. This is particularly useful when demoing things like runtime checks in safe release modes, which will cause the executable to crash.\n\n## Building \n```\n$ zig build \n```\n\n## Usage\n```\nAvailable commands: syntax, build, test, run, inline, help.\n\nPut the `--help` flag after the command to get command-specific\nhelp.\n\nExamples:\n\n ./doctest syntax --in_file=foo.zig\n ./doctest build --obj --fail \"not handled in switch\"\n ./doctest test --out_file bar.zig --zig_exe=\"/Downloads/zig/bin/zig\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristoff-it%2Fzig-doctest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkristoff-it%2Fzig-doctest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristoff-it%2Fzig-doctest/lists"}