A Karma plugin. Dynamically displays tests results at debug.html page
Installations
npm install karma-jasmine-html-reporter
Developer
dfederm
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
20.2.0
NPM Version
9.6.7
Statistics
37 Stars
55 Commits
27 Forks
2 Watching
3 Branches
7 Contributors
Updated on 20 Sept 2024
Bundle Size
941.00 B
Minified
483.00 B
Minified + Gzipped
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
430,150,010
Last day
-0.5%
352,452
Compared to previous day
Last week
3.6%
1,939,354
Compared to previous week
Last month
1.7%
8,065,482
Compared to previous month
Last year
6.3%
90,036,737
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
3
karma-jasmine-html-reporter
Reporter that dynamically shows tests results at debug.html page.
You can also run a describe block, or a single test.
Installation
You can simply install karma-jasmine-html-reporter
as a devDependency by:
1npm install karma-jasmine-html-reporter --save-dev
Configuration
1// karma.conf.js 2module.exports = function(config) { 3 config.set({ 4 frameworks: ['jasmine'], 5 plugins: [ 6 require('karma-jasmine'), 7 require('karma-jasmine-html-reporter') 8 ], 9 client: { 10 jasmine: { 11 // you can add configuration options for Jasmine here 12 // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html 13 // for example, you can disable the random execution with `random: false` 14 // or set a specific seed with `seed: 4321` 15 } 16 }, 17 reporters: ['kjhtml'] 18 }); 19};
With options
In combination with multiple reporters you may want to disable terminal messages because it's already handled by another reporter.
Example using the 'karma-mocha-reporter' plugin:
1// karma.conf.js 2module.exports = function(config) { 3 config.set({ 4 5 // Combine multiple reporters 6 reporters: ['kjhtml', 'mocha'], 7 8 jasmineHtmlReporter: { 9 suppressAll: true, // Suppress all messages (overrides other suppress settings) 10 suppressFailed: true // Suppress failed messages 11 } 12 13 }); 14};
You can pass a list of reporters as a CLI argument too:
1karma start --reporters kjhtml
Version compatibility
jasmine Version | karma-jasmine-html-reporter version |
---|---|
2.x | 0.2.2 |
3.x | 1.x |
4.x | 2.x |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
6 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc
- Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Reason
Found 5/29 approved changesets -- score normalized to 1
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
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
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 7 are checked with a SAST tool
Score
2.4
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More