Gathering detailed insights and metrics for karma-jasmine-spec-tags
Gathering detailed insights and metrics for karma-jasmine-spec-tags
Gathering detailed insights and metrics for karma-jasmine-spec-tags
Gathering detailed insights and metrics for karma-jasmine-spec-tags
npm install karma-jasmine-spec-tags
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
6 Stars
30 Commits
1 Forks
3 Watching
12 Branches
2 Contributors
Updated on 25 Jun 2022
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-53.2%
94
Compared to previous day
Last week
-21.7%
706
Compared to previous week
Last month
-10.3%
3,791
Compared to previous month
Last year
13.2%
62,705
Compared to previous year
3
6
A plugin for karma-jasmine
which helps to filter tests (specs) by tags.
Usage example:
$ karma start --tags smoke
$ karma start --skip-tags slow,bench
$ karma start --tags bench --skip-tags slow
$ karma start --tag-prefix 'scope:' --tags critical
Where tags are defined in spec names:
describe('Example test', () => {
it('should be a #smoke test', () => {
// ...
});
it('#slow test', () => {
// ...
});
})
describe('Performance test suite #bench', () => {
it('#fast #smoke test', () => {
// ...
});
it('#slow test', () => {
// ...
});
})
describe('Custom tag prefix', () => {
it('test scope:critical', () => {
// ...
});
})
Install the package using npm
:
$ npm install karma-jasmine-spec-tags --save-dev
Note: karma-jasmine
adapter is required to be installed.
Add jasmine-spec-tags
to the frameworks
array in Karma configuration after jasmine
:
module.exports = function(config) {
config.set({
frameworks: ['jasmine', 'jasmine-spec-tags']
});
}
Following options can be passed to karma
:
--tag-prefix <prefix>
- defines a prefix for a tag name. #
is used by default.
--tags [names]
- defines a comma-separated list of tag names.
names
is defined then specs which match to tags will be executed.names
is not defined then all specs with a tag will be executed.--skip-tags [names]
- defines a comma-separated list of tag names.
names
is defined then specs which match to tags will be skipped.names
is not defined then all specs with a tag will be skipped.Default values can be configured using client
map in Karma configuration:
module.exports = function(config) {
config.set({
frameworks: ['jasmine', 'jasmine-spec-tags'],
client: {
tagPrefix: '@',
tags: 'smoke',
skipTags: 'slow'
}
});
}
Where tagPrefix
, tags
and skipTags
fields mean the same as the command line options.
Values of tags
and skipTags
fields can be either a comma-separated list of tag names or an array of strings.
Boolean true
can be passed to them to include/exclude all tagged specs.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 1/18 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 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
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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