{"id":40591736,"url":"https://github.com/mucaho/grunt-qunit-node","last_synced_at":"2026-01-21T03:33:31.823Z","repository":{"id":57255606,"uuid":"47287474","full_name":"mucaho/grunt-qunit-node","owner":"mucaho","description":"Simple Grunt task that runs QUnit tests in Node.js","archived":false,"fork":false,"pushed_at":"2017-04-09T04:10:10.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-15T03:15:55.544Z","etag":null,"topics":["grunt","grunt-plugins","grunt-task","node","node-js","nodejs","npm","npm-package","qunit","qunit-tests"],"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/mucaho.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":"2015-12-02T20:43:42.000Z","updated_at":"2017-04-09T04:23:05.000Z","dependencies_parsed_at":"2022-09-04T23:01:11.796Z","dependency_job_id":null,"html_url":"https://github.com/mucaho/grunt-qunit-node","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mucaho/grunt-qunit-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mucaho%2Fgrunt-qunit-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mucaho%2Fgrunt-qunit-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mucaho%2Fgrunt-qunit-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mucaho%2Fgrunt-qunit-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mucaho","download_url":"https://codeload.github.com/mucaho/grunt-qunit-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mucaho%2Fgrunt-qunit-node/sbom","scorecard":{"id":667053,"data":{"date":"2025-08-11","repo":{"name":"github.com/mucaho/grunt-qunit-node","commit":"2b531c92888a4cb5abb0c5718ad0939564f37938"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/2 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":"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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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-21T18:25:48.712Z","repository_id":57255606,"created_at":"2025-08-21T18:25:48.712Z","updated_at":"2025-08-21T18:25:48.712Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28624512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T02:47:06.670Z","status":"ssl_error","status_checked_at":"2026-01-21T02:45:44.886Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["grunt","grunt-plugins","grunt-task","node","node-js","nodejs","npm","npm-package","qunit","qunit-tests"],"created_at":"2026-01-21T03:33:31.765Z","updated_at":"2026-01-21T03:33:31.815Z","avatar_url":"https://github.com/mucaho.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-qunit-node\n\n\u003e Simple Grunt task that runs QUnit tests in Node.js\n\n## Getting Started\nThis plugin requires Grunt `\u003e=0.4.0`.\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-qunit-node --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-qunit-node');\n```\n\nThis plugin has a peer dependency on `qunitjs` in version `^2.0.0`. If you haven't already installed it, run this command:\n\n```shell\nnpm install qunitjs --save-dev\n```\n\n## The \"qunit-node\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `qunit-node` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  'qunit-node': {\n    options: {\n      // Task-specific options go here.\n    },\n    your_target: {\n      // Target-specific file lists and/or options go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### options.setup   \nType: `Function`   \nDefault value: `function (QUnit) { }`   \n\nSpecify a callback function which will be called before QUnit starts the tests.   \nThis grunt task doesn't log individual test or module results, just the end result.   \nTherefore, it is a good place to register callbacks on the `QUnit` argument, e.g. with `QUnit.on(...)`.   \nSee [callbacks/QUnit.on](http://api.qunitjs.com/callbacks/QUnit.on) for details.\n\n#### options.\\\u003canyOtherProperty\\\u003e   \nType: `any`   \n\nAny other property of the `config` object will be directly set on `QUnit.config`.   \nSee [config/QUnit.config](http://api.qunitjs.com/config/QUnit.config) for details.\n\n### Usage Examples\n\nIn your `package.json`:\n```json\n  ...,\n  \"devDependencies\": {\n    \"grunt\": \"^1.0.1\",\n    \"grunt-qunit-node\": \"^0.1.0\",\n    \"qunitjs\": \"^2.3.0\"\n  },\n  \"scripts\": {\n    \"test\": \"grunt test\"\n  },\n  ...\n```\n\nInstall\n```shell\n$ npm install\n```\n\nIn your `Gruntfile.js`:\n```js\nvar inspect = require('util').inspect,\n    EOL = require('os').EOL;\n\nmodule.exports = function (grunt) {\n  grunt.initConfig({\n    'qunit-node': {\n      options: {\n        noglobals: true\n      },\n      test: {\n        src: 'test/qunit-node-fixture.js',\n        options: {\n          requireExpects: true,\n          setup: function (qunit) {\n            qunit.on('testEnd', function (testEnd) {\n              testEnd.errors.forEach(function (error) {\n                var actual = inspect(error.actual),\n                    expected = inspect(error.expected),\n                    reason = 'Actual value ' + actual + ' does not match expected value ' + expected,\n                    message = 'Description: ' + error.message + EOL +\n                              'Reason: ' + reason + EOL +\n                              'Stack: ' + error.stack;\n\n                grunt.log.errorlns(message);\n              });\n            });\n          }\n        }\n      }\n    }\n  });\n\n  grunt.loadNpmTasks('grunt-qunit-node');\n  grunt.registerTask('test', ['qunit-node:test']);\n};\n```\n\nIn `test/qunit-node-fixture.js`:\n```js\nQUnit.test('a basic test example', function (assert) {\n  assert.expect(1);\n  var value = 'hello';\n  assert.equal(value, 'hello', 'We expect value to be hello');\n});\n```\n\nRun the tests\n```shell\n$ npm test\n```\n\n## Contributing\n\n```shell\n$ git clone https://github.com/mucaho/grunt-qunit-node.git\n$ cd grunt-qunit-node\n$ npm install\n```\nModify code.   \nAdd unit tests for any new or changed functionality.   \n```shell\n$ npm test\n```\n\n## Release History\n0.0.1: Initial version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmucaho%2Fgrunt-qunit-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmucaho%2Fgrunt-qunit-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmucaho%2Fgrunt-qunit-node/lists"}