{"id":32635600,"url":"https://github.com/slothsoft/qunit-reporter","last_synced_at":"2026-07-01T12:32:01.974Z","repository":{"id":35113954,"uuid":"207619429","full_name":"slothsoft/qunit-reporter","owner":"slothsoft","description":"A module to generate reports from QUnit. This report generator knows how to export into a simple log file, JUnit XML and HTML.","archived":false,"fork":false,"pushed_at":"2022-03-24T16:20:44.000Z","size":125,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T19:48:09.705Z","etag":null,"topics":["junit","nodejs-module","qunit","report-generator"],"latest_commit_sha":null,"homepage":"http://slothsoft.de","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/slothsoft.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":"2019-09-10T17:16:23.000Z","updated_at":"2020-09-15T15:37:50.000Z","dependencies_parsed_at":"2022-08-08T05:01:33.322Z","dependency_job_id":null,"html_url":"https://github.com/slothsoft/qunit-reporter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/slothsoft/qunit-reporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothsoft%2Fqunit-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothsoft%2Fqunit-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothsoft%2Fqunit-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothsoft%2Fqunit-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slothsoft","download_url":"https://codeload.github.com/slothsoft/qunit-reporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slothsoft%2Fqunit-reporter/sbom","scorecard":{"id":832016,"data":{"date":"2025-08-11","repo":{"name":"github.com/slothsoft/qunit-reporter","commit":"1dec9cca925eb6750766cda30027ce9ac06c6009"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/26 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":"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":"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":"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":"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":"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":"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":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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 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":0,"reason":"22 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-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","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-px4h-xg32-q955","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-v4rh-8p82-6h5w","Warn: Project is vulnerable to: GHSA-h6q6-9hqw-rwfv","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"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-23T17:59:32.115Z","repository_id":35113954,"created_at":"2025-08-23T17:59:32.115Z","updated_at":"2025-08-23T17:59:32.115Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35007276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"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":["junit","nodejs-module","qunit","report-generator"],"created_at":"2025-10-31T00:56:47.458Z","updated_at":"2026-07-01T12:32:01.969Z","avatar_url":"https://github.com/slothsoft.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QUnit Reporter\r\n\r\n[![MIT Licence](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT) [![Build Status](https://travis-ci.org/slothsoft/qunit-reporter.svg?branch=master)](https://travis-ci.org/slothsoft/qunit-reporter) [![npm version](https://badge.fury.io/js/%40slothsoft%2Fqunit-reporter.svg)](https://badge.fury.io/js/%40slothsoft%2Fqunit-reporter)\r\n\r\n- **Author:** [Stef Schulz](mailto:s.schulz@slothsoft.de)\r\n- **Repository:** \u003chttps://github.com/slothsoft/qunit-reporter\u003e\r\n- **Open Issues:** \u003chttps://github.com/slothsoft/qunit-reporter/issues\u003e\r\n- **NPM:** [`@slothsoft/qunit-reporter`](https://www.npmjs.com/package/@slothsoft/qunit-reporter)\r\n- **Example:** \u003chttps://slothsoft.github.io/qunit-reporter/\u003e\r\n\r\nA module to generate reports from QUnit. Right now this module supports getting test data from multiple sources. Similarly it exports into different formats. This report generator knows how to export into a simple log file, JUnit XML and HTML.\r\n\r\n**Content of this file:**\r\n\r\n- [Getting Started](#getting-started)\r\n    - [Installing](#installing)\r\n    - [Using the Framework](#using-the-framework)\r\n- [Examples for Sources](#examples-for-sources)\r\n    - [QUnit](#qunit)\r\n    - [Custom Source](#custom-source)\r\n- [Examples for Exports](#examples-for-exports)\r\n    - [HTML](#html)\r\n    - [JUnit](#junit)\r\n    - [Log](#log)\r\n    - [Custom Export](#custom-export)\r\n- [Versions](#versions)\r\n- [License](#license)\r\n\r\n\r\n\r\n## Getting Started\r\n\r\n### Installing\r\n\r\nThis module can be found in the npm software registry:\r\n\r\n```\r\nnpm install @slothsoft/qunit-reporter --save\r\n```\r\n\r\n\r\n\r\n### Using the Framework\r\n\r\nCreating a test report consists of two parts:\r\n\r\n1. Collecting the test results \r\n1. Exporting the collected results\r\n\r\nThe general API to mix and match both parts is:\r\n\r\n```js\r\nvar sourceConfig = {};\r\nvar exportConfig = {};\r\n\r\nrequire(\"@slothsoft/qunit-reporter\")\r\n\t.from\u003cSource\u003e(sourceConfig)\r\n\t.to\u003cExport\u003e(exportConfig);\r\n```\r\n\r\nYou can generally chain multiple exports after each other like this:\r\n\r\n```js\r\nrequire(\"@slothsoft/qunit-reporter\")\r\n\t.from\u003cSource\u003e(sourceConfig)\r\n\t.to\u003cExport1\u003e(exportConfig)\r\n\t.to\u003cExport2\u003e(exportConfig)\r\n\t.to\u003cExport3\u003e(exportConfig);\r\n```\r\n\r\n\r\n\r\n## Examples for Sources\r\n\r\n### QUnit\r\n\r\n- **Script File:** [JavaScript](example/source-qunit.js)\r\n- **Output File:** [TXT](example/output/source-qunit.txt)\r\n\r\n```js\r\nconst QUnit = require(\"qunit\");\r\n\r\nQUnit.module(\"source-qunit\", function() {\r\n\tQUnit.test(\"my first test\", function(assert) {\r\n\t\tassert.equal(true, true);\r\n\t});\r\n});\r\n\r\nrequire(\"@slothsoft/qunit-reporter\").fromQUnit().toLog({ file : \"example/output/source-qunit.txt\" });\r\n\r\n```\r\n\r\n\r\n### Custom Source\r\n\r\n- **Script File:** [JavaScript](example/source-run.js)\r\n- **Output File:** [TXT](example/output/source-run.txt)\r\n\r\n```js\r\nvar run = {\r\n\tname : \"Run\",\r\n\tsuites : [\r\n\t\t{\r\n\t\t\tname : \"source-run\",\r\n\t\t\ttests : [\r\n\t\t\t\t{ name : \"Test 1\", time : 123},\r\n\t\t\t\t{ name : \"Test 2\", time : 456, error : \"Error\"},\r\n\t\t\t\t{ name : \"Test 3\", time : 789, failure : \"Failure\"},\r\n\t\t\t],\r\n\t\t}\r\n\t],\r\n\ttotal : 3,\r\n\tfailures : 1,\r\n\terrors : 1,\r\n\ttile : 1368\r\n};\r\n\r\nrequire(\"@slothsoft/qunit-reporter\").fromRun(run).toLog({ file : \"example/output/source-run.txt\" });\r\n\r\n```\r\n\r\n\r\n\r\n## Examples for Exports\r\n\r\nAll exports acknowledge the following parameters in their configuration:\r\n\r\n- **`file`** - exports directly to file\r\n- **`callback`** - callback function with report content\r\n\r\n\r\n### HTML\r\n\r\nCreates an HTML that can be displayed in any browser.\r\n\r\n- **Script File:** [JavaScript](example/export-html.js)\r\n- **Output File:** [HTML](example/output/export-html.html)\r\n- **Live Example:** [qunit-reporter](https://slothsoft.github.io/qunit-reporter/)\r\n\r\n```js\r\nvar run = createRun();\r\n\r\nrequire(\"@slothsoft/qunit-reporter\").fromRun(run).toHtml({\r\n\tfile : \"example/output/export-html.html\", // exports directly to file\r\n\tcallback : reportContent =\u003e {}, // callback function with report content\r\n\tencoding : 'utf-8', // the encoding of the exported file\r\n\txsl : null, // XSL that converts to HTML (or whatever you like)\r\n\txslFile : null, // path to XSL file that converts to HTML\r\n});\r\n```\r\n\r\nTo see how the config for XSL might work see this example:\r\n\r\n- **Script File:** [JavaScript](example/export-html-custom.js)\r\n- **Output File:** [TXT](example/output/export-html-custom.txt)\r\n- **Tests:** [JavaScript](test/export/html-export-test.js)\r\n\r\n\r\n### JUnit\r\n\r\nCreates standard JUnit XML that should be readable by every program that can handle JUnit as well.\r\n\r\n- **Script File:** [JavaScript](example/export-junit.js)\r\n- **Output File:** [XML](example/output/export-junit.xml)\r\n\r\n```js\r\nvar run = createRun();\r\n\r\nrequire(\"@slothsoft/qunit-reporter\").fromRun(run).toJUnit({\r\n\tfile : \"example/output/export-junit.xml\", // exports directly to file\r\n\tcallback : reportContent =\u003e {}, // callback function with report content\r\n\tencoding : 'utf-8', // the encoding of the exported file\r\n});\r\n```\r\n\r\n\r\n### Log\r\n\r\nCreates a log similar to what NodeJS does when executing the tests.\r\n\r\n- **Script File:** [JavaScript](example/export-log.js)\r\n- **Output File:** [TXT](example/output/export-log.txt)\r\n\r\n```js\r\nvar run = createRun();\r\n\r\nrequire(\"@slothsoft/qunit-reporter\").fromRun(run).toLog({\r\n\tfile : \"example/output/export-log.txt\", // exports directly to file\r\n\tcallback : reportContent =\u003e {}, // callback function with report content\r\n\tencoding : 'utf-8', // the encoding of the exported file\r\n});\r\n```\r\n\r\n\r\n### Custom Export\r\n\r\nUses a function to export the run.\r\n\r\n- **Script File:** [JavaScript](example/export-custom.js)\r\n- **Output File:** [TXT](example/output/export-custom.txt)\r\n\r\n```js\r\nvar run = createRun();\r\n\r\nrequire(\"@slothsoft/qunit-reporter\").fromRun(run).toCustomExport(function(run) {\r\n\t// this is a minimalistic report\r\n\treturn (run.total - run.failures - run.errors) + \" / \" + run.total + \" passed.\";\r\n}, {\r\n\tfile : \"example/output/export-custom.txt\", // exports directly to file\r\n\tcallback : reportContent =\u003e {}, // callback function with report content\r\n\tencoding : 'utf-8', // the encoding of the exported file\r\n});\r\n```\r\n\r\n\r\n##  Versions\r\n\r\n\r\n| Release       | Milestones | Release Notes    |\r\n| ------------- | ---------- | ---------------- |\r\n| [0.2.0](https://github.com/slothsoft/qunit-reporter/releases/tag/v0.2.0) | [0.2.0](https://github.com/slothsoft/qunit-reporter/milestone/3?closed=1) |\u003cul\u003e\u003cli\u003eXSL for HTML works correctly now and is customizable\u003c/li\u003e\u003cli\u003ebugfixes\u003c/li\u003e\u003cli\u003edefensive programming\u003c/li\u003e\u003c/ul\u003e |\r\n| [0.1.0](https://github.com/slothsoft/qunit-reporter/releases/tag/v0.1.0) | [0.1.0](https://github.com/slothsoft/qunit-reporter/milestone/1?closed=1) | \u003cul\u003e\u003cli\u003ebasic functionality\u003c/li\u003e\u003cli\u003esources: QUnit\u003c/li\u003e\u003cli\u003eexports: JUnit, HTML\u003c/li\u003e\u003c/ul\u003e |\r\n   \r\n\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see the [MIT license](LICENSE) for details.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslothsoft%2Fqunit-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslothsoft%2Fqunit-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslothsoft%2Fqunit-reporter/lists"}