{"id":17937858,"url":"https://github.com/axemclion/grunt-node-qunit","last_synced_at":"2025-08-02T14:05:31.231Z","repository":{"id":5598905,"uuid":"6805752","full_name":"axemclion/grunt-node-qunit","owner":"axemclion","description":"Grunt task for node-qunit","archived":false,"fork":false,"pushed_at":"2016-10-31T02:40:22.000Z","size":307,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T13:08:49.683Z","etag":null,"topics":["grunt-task","javascript","node-qunit","qunit","test"],"latest_commit_sha":null,"homepage":null,"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/axemclion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-22T00:44:13.000Z","updated_at":"2020-11-23T06:30:23.000Z","dependencies_parsed_at":"2022-07-07T07:02:23.960Z","dependency_job_id":null,"html_url":"https://github.com/axemclion/grunt-node-qunit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/axemclion/grunt-node-qunit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axemclion%2Fgrunt-node-qunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axemclion%2Fgrunt-node-qunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axemclion%2Fgrunt-node-qunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axemclion%2Fgrunt-node-qunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axemclion","download_url":"https://codeload.github.com/axemclion/grunt-node-qunit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axemclion%2Fgrunt-node-qunit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268401584,"owners_count":24244461,"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-08-02T02:00:12.353Z","response_time":74,"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":["grunt-task","javascript","node-qunit","qunit","test"],"created_at":"2024-10-28T23:08:03.811Z","updated_at":"2025-08-02T14:05:31.191Z","avatar_url":"https://github.com/axemclion.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"grunt-node-qunit\n\n[![Build Status](https://api.travis-ci.org/axemclion/grunt-node-qunit.png?branch=master)](https://travis-ci.org/axemclion/grunt-node-qunit)\n\n-----------------\n\nA Grunt task for running [node-qunit](https://github.com/kof/node-qunit)\n\n[Grunt](http://gruntjs.com/) is a task-based command line build tool for JavaScript projects, based on nodejs. \n[Node-Qunit](https://github.com/kof/node-qunit) is a Qunit testing framework for nodejs\n[QUnit](http://qunitjs.com/) is a powerful, easy-to-use JavaScript unit test suite used by the jQuery, jQuery UI and jQuery Mobile projects and is capable of testing any generic JavaScript code, including itself! \n\n# About the tool\n\nThe Grunt Node-Qunit task is a wrapper for the node-qunit task to be used in grunt. The parameters used are the exact parameters used with the [node-quit](https://github.com/kof/node-qunit#via-api) package.\n\n## How is this different from [grunt-nodeunit](https://github.com/gruntjs/grunt-contrib-nodeunit)\n\nGrunt NodeUnit task uses the [nodeunit](https://github.com/caolan/nodeunit/) testing framework. The syntax is slightly different and uses the [node-qunit](https://github.com/kof/node-qunit#via-api). The syntax for this task is exactly like the qunit syntax. \n\n#Usage\n\nThis task is available as a [node package](https://npmjs.org/package/grunt-node-qunit) and can be installed as `npm install grunt-node-qunit`. It can also be included as a devDependency in package.json in your node project. \nTo use the task in `grunt.js`, load the npmTask. \n\n\n```javascript\ngrunt.loadNpmTasks('grunt-node-qunit');\n\n``` \n\n__Note that this is *NOT* a multi task. Node-Qunit is used via the API, as described [here](https://github.com/axemclion/grunt-node-qunit.git). \n\n\nThe parameters are \n\n* __setup__ : An object passed to qunit.setup\n* __deps__ : define dependencies, which are required then before code, passed in qunit.run()\n* __code__ : define the code that needs to be tested\n* __tests__: define the test files\n* __callback__ : A callback that is called everytime a qunit test for a page is complete. Runs per page, per browser configuration. A true or false return value passes or fails the test, undefined return value does not alter the result of the test. For async results, call `this.async()` in the function. The return of `this.async()` is a function that should be called once the async action is completed.\n\n#Example\n\nInside the grunt.initConfig, add a section\n\n```\n\ngrunt.initConfig({\n\t//....\n\t'node-qunit': {\n\t\tdeps: './src/pouch.js',\n\t\tcode: './src/adapters/pouch.leveldb.js',\n\t\ttests: testFiles.map(function(n){\n\t\t\treturn \"./tests/\" + n;\n\t\t}),\n\t\tcallback: function(err, res){\n\t\t\t!err \u0026\u0026 publishResults(\"node\", res, this.async());\n\t\t}\n\t},\n\t// ....\n}); // end of grunt.initConfig\n\n```\n\n// Elsewhere in the grunt file\ngrunt.loadNpmTasks('grunt-node-qunit');\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxemclion%2Fgrunt-node-qunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxemclion%2Fgrunt-node-qunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxemclion%2Fgrunt-node-qunit/lists"}