{"id":13739549,"url":"https://github.com/aghassemi/tap-xunit","last_synced_at":"2026-01-11T00:39:31.526Z","repository":{"id":21631173,"uuid":"24951737","full_name":"aghassemi/tap-xunit","owner":"aghassemi","description":"TAP to xUnit XML converter","archived":false,"fork":false,"pushed_at":"2022-05-05T17:29:19.000Z","size":44,"stargazers_count":42,"open_issues_count":10,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-10T03:08:33.674Z","etag":null,"topics":["javascript","junit","tap","tape","xunit"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/aghassemi.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":"2014-10-08T17:20:22.000Z","updated_at":"2022-05-07T23:14:42.000Z","dependencies_parsed_at":"2022-08-21T07:10:16.214Z","dependency_job_id":null,"html_url":"https://github.com/aghassemi/tap-xunit","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aghassemi%2Ftap-xunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aghassemi%2Ftap-xunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aghassemi%2Ftap-xunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aghassemi%2Ftap-xunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aghassemi","download_url":"https://codeload.github.com/aghassemi/tap-xunit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224475355,"owners_count":17317529,"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":["javascript","junit","tap","tape","xunit"],"created_at":"2024-08-03T04:00:35.086Z","updated_at":"2026-01-11T00:39:31.462Z","avatar_url":"https://github.com/aghassemi.png","language":"JavaScript","funding_links":[],"categories":["Reporters"],"sub_categories":["JavaScript"],"readme":"[![Build Status](https://travis-ci.org/aghassemi/tap-xunit.png)](https://travis-ci.org/aghassemi/tap-xunit)\n[![Issue Stats](http://issuestats.com/github/aghassemi/tap-xunit/badge/pr)](http://issuestats.com/github/aghassemi/tap-xunit)\n[![Issue Stats](http://issuestats.com/github/aghassemi/tap-xunit/badge/issue)](http://issuestats.com/github/aghassemi/tap-xunit)\ntap-xunit\n=========\n\nConverts [TAP](http://testanything.org/) to xUnit XML format.\n\nTAP output from testing frameworks such as [tape](https://github.com/substack/tape) or [node-tap](https://github.com/isaacs/node-tap) can be piped directly to tap-xunit\n\n```\nnode test.js | tap-xunit\n```\n\n![console window showing tap-xunit example](https://cloud.githubusercontent.com/assets/2099009/5288038/60d5a2da-7ae6-11e4-8d5a-5de497b4b597.jpg)\n\n# Installation\n\n```\nnpm install tap-xunit -g\n```\n\n# Usage\n## CLI\n```\nnode test.js | tap-xunit\n\nless results.tap | tap-xunit --package=\"MyCompany.MyTool\" \u003e results.xml\n\n```\n\nBy default TAP comments are used as test-suite names and considered to mark test boundaries. CLI flag ```--dontUseCommentsAsTestNames``` can be used to turn that feature off, in which case comments are ignored and\nall assertions go inside a single ```\u003ctestsuite name=\"Default\"\u003e``` with name ```Default```\n\n## Library\n```\nvar converter = require('tap-xunit');\n\n// Optional configuration\nvar opts = {}\n\nvar tapToxUnitConverter = converter(opts);\n\ntapInputStream.pipe(tapToxUnitConverter).pipe(xUnitOutStream);\n```\n## Options\nOptions can be passed as CLI arguments by being prefixed with ```--```\n\n#### dontUseCommentsAsTestNames\n*default*: ```false```\n\nBy default TAP comments are used as test-suite names and considered to mark test boundaries.\nThis option can be used to turn that feature off, in which case comments are ignored and\nall assertions go inside a single ```\u003ctestsuite name=\"Default\"\u003e``` with name ```Default```\n\n#### replaceWithUnicodeDot\n*default*: ```false```\n\nWhether the '.' in test-suite names should be replaced with a Unicode homoglyph.\nThis feature exists because many xUnit reporters assume '.' in test-suite name implies package hierarchy, which may not be the case.\n\n#### package\n*default*: ```''```\n\nIf specified, all test-suites will be prefixed with the given package name.\nNOTE: ```replaceWithUnicodeDot``` option does not apply to package and . can be used to specify package hierarchy.\n\n\n# License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faghassemi%2Ftap-xunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faghassemi%2Ftap-xunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faghassemi%2Ftap-xunit/lists"}