{"id":16655178,"url":"https://github.com/chiefgokhlayeh/tap-consooomer","last_synced_at":"2026-03-13T20:04:11.592Z","repository":{"id":61197418,"uuid":"537183365","full_name":"ChiefGokhlayeh/tap-consooomer","owner":"ChiefGokhlayeh","description":"📦 Test Anything Protocol Consumer for Rust","archived":false,"fork":false,"pushed_at":"2025-04-08T18:13:18.000Z","size":312,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T18:12:28.625Z","etag":null,"topics":["consumer","parser","peg","test-anything-protocol"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChiefGokhlayeh.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":"2022-09-15T19:46:34.000Z","updated_at":"2025-04-08T18:13:21.000Z","dependencies_parsed_at":"2023-02-12T10:00:52.372Z","dependency_job_id":"7f7d42df-199f-4d10-a409-7f53773595e5","html_url":"https://github.com/ChiefGokhlayeh/tap-consooomer","commit_stats":{"total_commits":237,"total_committers":3,"mean_commits":79.0,"dds":0.3502109704641351,"last_synced_commit":"902c88a9da142918c0bf8d2a4fc824849c85567b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChiefGokhlayeh%2Ftap-consooomer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChiefGokhlayeh%2Ftap-consooomer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChiefGokhlayeh%2Ftap-consooomer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChiefGokhlayeh%2Ftap-consooomer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChiefGokhlayeh","download_url":"https://codeload.github.com/ChiefGokhlayeh/tap-consooomer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085326,"owners_count":21045139,"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":["consumer","parser","peg","test-anything-protocol"],"created_at":"2024-10-12T09:52:10.985Z","updated_at":"2026-03-13T20:04:11.525Z","avatar_url":"https://github.com/ChiefGokhlayeh.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 tap-consooomer\n\n_That's three o's._\n\n[![Crate Status](https://img.shields.io/crates/v/tap-consooomer.svg)](https://crates.io/crates/tap-consooomer) [![Build and Test](https://github.com/ChiefGokhlayeh/tap-consooomer/actions/workflows/build_and_test.yaml/badge.svg)](https://github.com/ChiefGokhlayeh/tap-consooomer/actions/workflows/build_and_test.yaml) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/ChiefGokhlayeh/tap-consooomer/main.svg)](https://results.pre-commit.ci/latest/github/ChiefGokhlayeh/tap-consooomer/main) [![codecov](https://codecov.io/gh/ChiefGokhlayeh/tap-consooomer/branch/main/graph/badge.svg?token=0WTJX09WD8)](https://codecov.io/gh/ChiefGokhlayeh/tap-consooomer)\n\n[Test Anything Protocol (TAP)](https://testanything.org/) Consumer for Rust. Capable of parsing [TAP14](https://testanything.org/tap-version-14-specification.html) files into [pest](https://github.com/pest-parser/pest) tokens.\n\n## Usage\n\n```txt\nReads a given Test Anything Protocol (TAP) file and prints the JSON-formatted parser result to\nstdout. If FILE is omitted, TAP input is read from stdin. Parsing only comences after encountering\nan EOF. Only complete TAP files are supported.\n\nUSAGE:\n    tap [FILE]\n\nARGS:\n    \u003cFILE\u003e\n            Path to TAP input file\n\nOPTIONS:\n    -h, --help\n            Print help information\n\n    -V, --version\n            Print version information\n```\n\n## Examples\n\nSee [examples](examples) directory for some example TAP logs. To convert them into JSON run:\n\n```sh\n❯ tap examples/cascading.tap\n```\n\nThe TAP log should be transformed as follows:\n\n\u003cdiv align=\"center\"\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eInput\u003c/th\u003e\n\u003cth\u003e\u003c/th\u003e\n\u003cth\u003eOutput\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr align=\"left\"\u003e\n\u003ctd\u003e\n\n```tap\nTAP version 14\n1..3 # root\nok 1 - i'm in root\n# subtest: here begins sub-1\n  2..2 # sub-1\n  ok 2 - i'm in sub-1\nok 3\n```\n\n\u003c/td\u003e\n\u003ctd\u003e\n\u003cfont size=\"50pt\"\u003e➜\u003c/font\u003e\n\u003c/td\u003e\n\u003ctd\u003e\n\n```json\n{\n  \"preamble\": {\n    \"version\": \"14\"\n  },\n  \"plan\": {\n    \"first\": 1,\n    \"last\": 3,\n    \"reason\": \"root\"\n  },\n  \"body\": [\n    {\n      \"test\": {\n        \"result\": true,\n        \"number\": 1,\n        \"description\": \"i'm in root\",\n        \"directive\": null,\n        \"yaml\": []\n      }\n    },\n    {\n      \"subtest\": {\n        \"name\": \"here begins sub-1\",\n        \"plan\": {\n          \"first\": 2,\n          \"last\": 2,\n          \"reason\": \"sub-1\"\n        },\n        \"body\": [\n          {\n            \"test\": {\n              \"result\": true,\n              \"number\": 2,\n              \"description\": \"i'm in sub-1\",\n              \"directive\": null,\n              \"yaml\": []\n            }\n          }\n        ]\n      }\n    },\n    {\n      \"test\": {\n        \"result\": true,\n        \"number\": 3,\n        \"description\": null,\n        \"directive\": null,\n        \"yaml\": []\n      }\n    }\n  ]\n}\n```\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/div\u003e\n\n## License\n\nLicensed under\n\n- Apache License, Version 2.0\n  ([LICENSE](LICENSE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n\n## Limitations\n\n- Embedded YAML blocks are parsed into a list of individual `yaml` lines. These are treated as plain-text and **not** broken down any further. Use any of your favorite [YAML libraries](https://crates.io/search?q=yaml) (like [serde_yaml](https://crates.io/crates/serde_yaml)) to further parse the embedded YAML block. Any indentation preceding the first element is used as the _anchor_ for the entire YAML block _and trimmed off_. Any line separators (`\u003cLF\u003e` or `\u003cCR\u003e\u003cLF\u003e`) at the end of any given `yaml` line are omitted. Empty or whitespace-only lines inside the embedded YAML block get removed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchiefgokhlayeh%2Ftap-consooomer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchiefgokhlayeh%2Ftap-consooomer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchiefgokhlayeh%2Ftap-consooomer/lists"}