{"id":20339399,"url":"https://github.com/matsadler/mini-unit","last_synced_at":"2025-09-05T11:41:18.343Z","repository":{"id":2454024,"uuid":"3425392","full_name":"matsadler/mini-unit","owner":"matsadler","description":"xUnit style test cases, suites, and runner for Node's assert module.","archived":false,"fork":false,"pushed_at":"2012-02-12T22:52:53.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T10:53:34.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/matsadler.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":"2012-02-12T22:48:58.000Z","updated_at":"2014-01-01T16:01:07.000Z","dependencies_parsed_at":"2022-09-09T01:00:20.820Z","dependency_job_id":null,"html_url":"https://github.com/matsadler/mini-unit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matsadler/mini-unit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsadler%2Fmini-unit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsadler%2Fmini-unit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsadler%2Fmini-unit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsadler%2Fmini-unit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matsadler","download_url":"https://codeload.github.com/matsadler/mini-unit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsadler%2Fmini-unit/sbom","scorecard":{"id":625272,"data":{"date":"2025-08-11","repo":{"name":"github.com/matsadler/mini-unit","commit":"d455b6c32cd008a54aa2446389b561226d82e0eb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/1 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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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"}}]},"last_synced_at":"2025-08-21T06:13:19.995Z","repository_id":2454024,"created_at":"2025-08-21T06:13:19.995Z","updated_at":"2025-08-21T06:13:19.995Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273752966,"owners_count":25161910,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"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":[],"created_at":"2024-11-14T21:16:49.666Z","updated_at":"2025-09-05T11:41:18.291Z","avatar_url":"https://github.com/matsadler.png","language":"JavaScript","readme":"# MiniUnit\n\nxUnit style test cases, suites, and runner for Node's assert module. Inspired by\nRuby's MiniTest::Unit.\n\nMiniUnit is only intended to help you structure your tests, it is expected\nyou'll be using it with the [Node.js assert module][assert] for assertions.\n\n[assert]: http://nodejs.org/docs/latest/api/assert.html\n\n## Usage\n\n    // require MiniUnit and Node's assert module\n    var MiniUnit = require(\"mini-unit\");\n    var assert = require(\"assert\");\n    \n    // require the module under test\n    var MyModule = require(\"./../lib/my-module\");\n    \n    // create and name a test case\n    var tc = new MiniUnit.TestCase(\"MyModule\");\n    \n    // run before each test\n    tc.setup = function () {\n        this.adder = new MyModule.adder();\n    };\n    \n    // run after each test\n    tc.teardown = function () {\n        this.adder.reset();\n    };\n    \n    // test methods must be named 'test' followed by at least one character.\n    tc.testAddition = function () {\n        var a = 2,\n            b = 2,\n            result,\n        \n        result = this.adder.add(a, b)\n        \n        assert.equal(result, 4);\n    };\n    \n    // if the file being run is the current file, then run the tests, otherwise\n    // export the test case\n    if (require.main === module) {\n        MiniUnit.run(tc);\n    } else {\n        module.exports = tc;\n    }\n\n### Running a suite of test cases\n\n    var MiniUnit = require(\"mini-unit\");\n    var testCases = [\n        \"./foo\",\n        \"./bar\"\n    ].map(function (path) {\n        return require(path);\n    });\n    \n    MiniUnit.runSuit(testCases);\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsadler%2Fmini-unit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatsadler%2Fmini-unit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsadler%2Fmini-unit/lists"}