{"id":36542265,"url":"https://github.com/allenluce/mocha-table","last_synced_at":"2026-01-12T05:48:22.485Z","repository":{"id":32508214,"uuid":"135765405","full_name":"allenluce/mocha-table","owner":"allenluce","description":"Table-driven tests for Mocha.","archived":false,"fork":false,"pushed_at":"2022-12-30T20:36:14.000Z","size":407,"stargazers_count":3,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-15T22:20:45.210Z","etag":null,"topics":["javascript","mocha","testing"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/allenluce.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}},"created_at":"2018-06-01T21:34:16.000Z","updated_at":"2021-08-03T03:40:29.000Z","dependencies_parsed_at":"2023-01-14T21:26:43.441Z","dependency_job_id":null,"html_url":"https://github.com/allenluce/mocha-table","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/allenluce/mocha-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenluce%2Fmocha-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenluce%2Fmocha-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenluce%2Fmocha-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenluce%2Fmocha-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allenluce","download_url":"https://codeload.github.com/allenluce/mocha-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenluce%2Fmocha-table/sbom","scorecard":{"id":185341,"data":{"date":"2025-08-11","repo":{"name":"github.com/allenluce/mocha-table","commit":"a6325421368027551ec590f529498699e7ef7e07"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"29 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-wg6g-ppvx-927h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T19:42:54.984Z","repository_id":32508214,"created_at":"2025-08-16T19:42:54.984Z","updated_at":"2025-08-16T19:42:54.984Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28335280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","mocha","testing"],"created_at":"2026-01-12T05:48:19.836Z","updated_at":"2026-01-12T05:48:22.481Z","avatar_url":"https://github.com/allenluce.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mocha Table\n\n\u003cspan class=\"badge-travisci\"\u003e\n  \u003ca href=\"http://travis-ci.org/allenluce/mocha-table\" title=\"Check this project's build status on TravisCI\"\u003e\u003cimg src=\"https://img.shields.io/travis/allenluce/mocha-table/master.svg\" alt=\"Travis CI Build Status\" /\u003e\u003c/a\u003e\n\u003c/span\u003e\n\u003cspan class=\"badge-npmversion\"\u003e\n  \u003ca href=\"https://npmjs.org/package/mocha-table\" title=\"View this project on NPM\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/mocha-table.svg\" alt=\"NPM version\" /\u003e\u003c/a\u003e\n\u003c/span\u003e\n\nTable-driven tests for [Mocha](https://mochajs.org/). Lets you easily\nspecify data-driven tests with nice test names. Allows for easy focus\nand skipping of individual test entries.\n\n## In Node.js\n\n### Installation\n\n    npm install mocha-table --save-dev\n\n[sprintf.js](https://github.com/alexei/sprintf.js) is used to\ninterpolate a template, resulting in nice test names for each table\nentry.  The string template (the second argument to `describeTable`) is\nfed the values that are given to the test function (the third\nargument).\n\n    const expect = require('chai').expect\n    const {describeTable, tableIt, entryIt, xentryIt} = require('mocha-table')\n\n    describeTable('Primality tests', function() {\n      tableIt('is %d prime? (should be %t)', function (number, result) {\n        expect(isPrime(number)).to.equal(result)\n      })\n\n      entryIt(3, true)\n      entryIt(4, false)\n      entryIt.skip(15, false)\n      xentryIt(21, false)\n      entryIt(1847, true)\n      entryIt(1848, false)\n    })\n\n![You'll get nice results](https://github.com/allenluce/mocha-table/raw/master/assets/web.png)\n\n## In the browser\n\nHere's a simple HTML test harness:\n\n    \u003chtml\u003e\n    \u003chead\u003e\n        \u003cmeta charset=\"utf-8\"\u003e\n        \u003ctitle\u003eMocha Table Tests\u003c/title\u003e\n        \u003clink href=\"https://unpkg.com/mocha@5.2.0/mocha.css\" rel=\"stylesheet\" /\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n    \u003cdiv id=\"mocha\"\u003e\u003c/div\u003e\n\n    \u003cscript src=\"https://unpkg.com/chai@4.1.2/chai.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"https://unpkg.com/mocha@5.2.0/mocha.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"https://cdn.jsdelivr.net/npm/mocha-table@1.0.5\"\u003e\u003c/script\u003e\n\n    \u003cscript\u003emocha.setup('bdd')\u003c/script\u003e\n    \u003cscript src=\"prime.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"prime.test.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n        mocha.checkLeaks();\n        mocha.run();\n    \u003c/script\u003e\n    \u003c/body\u003e\n    \u003c/html\u003e\n\nGiven a `prime.js` like this:\n\n    // My amazing O(1) primality tester.\n    // Works for the majority of integers!!\n    function isPrime (n) {\n      return (n === 2 || n / 2 !== Math.floor(n / 2)) \u0026\u0026\n        (n === 3 || n / 3 !== Math.floor(n / 3))\n    }\n\nA table-driven test `prime.test.js` file looks like:\n\n    const mochaTable = require('mocha-table')\n    const describeTable = mochaTable.describeTable\n    const tableIt = mochaTable.tableIt\n    const entryIt = mochaTable.entryIt\n    const xentryIt = mochaTable.xentryIt\n    const expect = chai.expect\n\n    describeTable('Primality tests', function() {\n      tableIt('is %d prime? (should be %t)', function (number, result) {\n        expect(isPrime(number)).to.equal(result)\n      })\n\n      entryIt(3, true)\n      entryIt(4, false)\n      entryIt.skip(15, false)\n      xentryIt(21, false)\n      entryIt(1847, true)\n      entryIt(1848, false)\n    })\n\n![You'll get nice web results](assets/web.png)\n\nThe example above demonstrates the use of `xentryIt` and `entryIt.skip` to\nmark some pesky tests that haven't been fixed yet. An entry can also be\nfocused programmatically using `.only` to mark it:\n\n    ...\n    entryIt.only(3, true),\n    ...\n\n## Building from source\n\nMocha Table uses [Browserify](http://browserify.org/) to create a\nversion that's easily usable on the web (via\n[jsDelivr](jsdelivr.com)). Make sure any changes to `index.js` are\nreflected in the built asset:\n\n    npm run build\n\n## Mocha version\n\nMocha Table works with  Mocha version 4.0.0 or higher.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallenluce%2Fmocha-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallenluce%2Fmocha-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallenluce%2Fmocha-table/lists"}