{"id":20731673,"url":"https://github.com/tapjs/tt","last_synced_at":"2025-04-23T22:08:09.483Z","repository":{"id":5703194,"uuid":"6913852","full_name":"tapjs/tt","owner":"tapjs","description":"tiny tap test thing","archived":false,"fork":false,"pushed_at":"2022-02-26T23:13:49.000Z","size":11,"stargazers_count":10,"open_issues_count":11,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T22:06:18.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tapjs.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":"2012-11-29T02:23:40.000Z","updated_at":"2024-04-06T07:52:18.000Z","dependencies_parsed_at":"2022-08-28T13:01:33.390Z","dependency_job_id":null,"html_url":"https://github.com/tapjs/tt","commit_stats":null,"previous_names":["isaacs/tt"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tapjs%2Ftt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tapjs%2Ftt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tapjs%2Ftt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tapjs%2Ftt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tapjs","download_url":"https://codeload.github.com/tapjs/tt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250522299,"owners_count":21444511,"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-17T05:16:23.639Z","updated_at":"2025-04-23T22:08:09.428Z","avatar_url":"https://github.com/tapjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tt\n\nA \u003cabbr title=\"100 lines\"\u003every very small\u003c/abbr\u003e tap-emitting test\nframework.\n\nThis is *not* a test runner, but you can use tap as your test runner.\nBecause tt outputs TAP formatted results, it'll get interpreted\nnicely.\n\n## USAGE\n\nDo this in your test script:\n\n```javascript\nvar test = require('tt')\n\ntest('first test', function(t) {\n  t.equal(2, 1 + 1, 'math works')\n  t.equal(0.3, 0.1 + 0.1 + 0.1, 'except when it doesnt')\n  t.test('child test', function(t) {\n    t.pass('this will always pass')\n    t.fail('this will never pass')\n    t.end()\n  })\n  t.end()\n})\n\ntest('second test', function(t) {\n  t.ok(true, 'etc')\n  t.end()\n})\n```\n\nRun it with `node my-test.js`, or your favorite TAP-aware test runner\nthingie.\n\n## API\n\nThe function exported by `require('tt')` is the test function.  Give\nit a name and a function.  That function will get an argument object\nwhich has some assertion methods.\n\nEvery function from `require('assert')` are supported, but they output\nTAP data rather than throwing.\n\nAlso, you have `t.pass(message)`, `t.fail(message)`,\n`t.comment(message)`, and `t.test(name, fn)`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftapjs%2Ftt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftapjs%2Ftt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftapjs%2Ftt/lists"}