{"id":15670018,"url":"https://github.com/plasticrake/mocha-json-runner","last_synced_at":"2026-02-13T17:32:24.198Z","repository":{"id":36710345,"uuid":"229646052","full_name":"plasticrake/mocha-json-runner","owner":"plasticrake","description":"A Mocha.js runner that replays from JSON input","archived":false,"fork":false,"pushed_at":"2024-08-31T07:16:10.000Z","size":922,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-02T13:03:03.146Z","etag":null,"topics":["json","mocha","mocha-runner"],"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/plasticrake.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2019-12-22T23:48:50.000Z","updated_at":"2025-02-01T11:26:50.000Z","dependencies_parsed_at":"2024-10-23T13:24:40.629Z","dependency_job_id":null,"html_url":"https://github.com/plasticrake/mocha-json-runner","commit_stats":{"total_commits":49,"total_committers":1,"mean_commits":49.0,"dds":0.0,"last_synced_commit":"6d1f94c1b9118f59d8c68c89191b1239a96f00ad"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/plasticrake/mocha-json-runner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plasticrake%2Fmocha-json-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plasticrake%2Fmocha-json-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plasticrake%2Fmocha-json-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plasticrake%2Fmocha-json-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plasticrake","download_url":"https://codeload.github.com/plasticrake/mocha-json-runner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plasticrake%2Fmocha-json-runner/sbom","scorecard":{"id":737181,"data":{"date":"2025-08-11","repo":{"name":"github.com/plasticrake/mocha-json-runner","commit":"6d1f94c1b9118f59d8c68c89191b1239a96f00ad"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/plasticrake/mocha-json-runner/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/plasticrake/mocha-json-runner/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/plasticrake/mocha-json-runner/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/plasticrake/mocha-json-runner/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/plasticrake/mocha-json-runner/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/plasticrake/mocha-json-runner/ci.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:55","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   2 out of   3 npmCommand dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"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":"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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/plasticrake/homebridge-github/SECURITY.md:1","Info: Found linked content: github.com/plasticrake/homebridge-github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/plasticrake/homebridge-github/SECURITY.md:1","Info: Found text in security policy: github.com/plasticrake/homebridge-github/SECURITY.md:1"],"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":"SAST","score":3,"reason":"SAST tool is not run on all commits -- score normalized to 3","details":["Warn: 3 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986"],"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-22T16:12:17.259Z","repository_id":36710345,"created_at":"2025-08-22T16:12:17.260Z","updated_at":"2025-08-22T16:12:17.260Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29413394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["json","mocha","mocha-runner"],"created_at":"2024-10-03T14:41:58.483Z","updated_at":"2026-02-13T17:32:24.183Z","avatar_url":"https://github.com/plasticrake.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mocha.js JSON Runner\n\n[![NPM Version](https://img.shields.io/npm/v/mocha-json-runner.svg)](https://www.npmjs.com/package/mocha-json-runner)\n[![Build Status](https://github.com/plasticrake/mocha-json-runner/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/plasticrake/mocha-json-runner/actions/workflows/ci.yml?query=branch%3Amaster)\n[![Coverage Status](https://coveralls.io/repos/github/plasticrake/mocha-json-runner/badge.svg?branch=master)](https://coveralls.io/github/plasticrake/mocha-json-runner?branch=master)\n\n**A [Mocha.js](https://mochajs.org/) runner that replays from JSON input**\n\nPairs well with [mocha-json-serialize-reporter](https://github.com/plasticrake/mocha-json-serialize-reporter)!\n\n## Usage\n\n### Command-line\n\n```shell\nnpm install --global mocha-json-runner\n```\n\n```shell\nmocha-json-runner ./path/to/input.json\n```\n\n```shell\nmocha-json-runner --help\n```\n\n```text\nmocha-json-runner \u003cjson\u003e\n\nPlayback JSON test results with Mocha\n\nReporting \u0026 Output\n  -c, --color, --colors                     Force-enable color output  [boolean]\n      --diff                                Show diff on failure\n                                                       [boolean] [default: true]\n      --full-trace                          Display full stack traces  [boolean]\n  -G, --growl                               Enable Growl notifications [boolean]\n      --inline-diffs                        Display actual/expected differences\n                                            inline within each string  [boolean]\n  -R, --reporter                            Specify reporter to use\n                                                      [string] [default: \"spec\"]\n  -O, --reporter-option,                    Reporter-specific options\n  --reporter-options                        (\u003ck=v,[k1=v1,..]\u003e)           [array]\n      --warn-on-missing-state               Warn when test is missing `state`.\n                                            Outputs to stderr. If mocha was run\n                                            with `--grep` this would produce\n                                            warnings for tests not matching.\n\nFile Handling\n  -r, --require  Require module                        [array] [default: (none)]\n\nPositional Arguments\n  json  One file to load and playback\n\nOther Options\n  -h, --help       Show usage information \u0026 exit                       [boolean]\n  -V, --version    Show version number \u0026 exit                          [boolean]\n      --reporters  List built-in reporters \u0026 exit                      [boolean]\n```\n\n### Programmatically\n\n```shell\nnpm install --save-dev mocha-json-runner\n```\n\n```js\nimport Mocha from 'mocha';\nimport MochaJsonRunner from 'mocha-json-runner';\n\nconst json = JSON.stringify({\n  suite: {\n    title: '',\n    tests: [\n      { title: 'passing test', state: 'passed' },\n      { title: 'failing test', state: 'failed', err: { message: 'FAIL' } },\n      { title: 'pending test', pending: true },\n    ],\n  },\n});\n\nconst runner = new MochaJsonRunner(json);\nnew Mocha.reporters.Spec(runner);\nrunner.run();\n```\n\n**Output:**\n\n\u003c!-- markdownlint-disable MD033 --\u003e\n\u003cpre\u003e\n\u003ccode\u003e\n\u003cspan style=\"color:#0A0\"\u003e  ✓\u003c/span\u003e\u003cspan style=\"color:#555\"\u003e passing test\u003c/span\u003e\n\u003cspan style=\"color:#A00\"\u003e  1) failing test\u003c/span\u003e\n\u003cspan style=\"color:#0AA\"\u003e  - pending test\u003c/span\u003e\n\n\u003cspan style=\"color:#5F5\"\u003e \u003c/span\u003e\u003cspan style=\"color:#0A0\"\u003e 1 passing\u003c/span\u003e\u003cspan style=\"color:#555\"\u003e (0ms)\u003c/span\u003e\n\u003cspan style=\"color:#0AA\"\u003e \u003c/span\u003e\u003cspan style=\"color:#0AA\"\u003e 1 pending\u003c/span\u003e\n\u003cspan style=\"color:#A00\"\u003e  1 failing\u003c/span\u003e\n\n\u003cspan\u003e  1) failing test:\u003c/span\u003e\n\u003cspan style=\"color:#A00\"\u003e     FAIL\u003c/span\u003e\u003cspan style=\"color:#555\"\u003e\u003c/span\u003e\n\u003c/code\u003e\n\u003c/pre\u003e\n\u003c!-- markdownlint-enable MD033 --\u003e\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplasticrake%2Fmocha-json-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplasticrake%2Fmocha-json-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplasticrake%2Fmocha-json-runner/lists"}