Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
karma-summary-reporter
Advanced tools
Displays a summary of tested browsers and failed testcases after a test run.
Show a table detailing the test results for all connected browsers at the end of a test run. This gives a better overview which browsers are broken than the output of other reporters.
The plugin is intended to be used in addition to some other reporter that shows you the error details. This plugin only shows an overview of passed and failed testcases, no more detailed information:
When you test in several browsers, the sequential test output of all the browsers can be unwieldy to quickly grasp the problems in the tests. The summary table provided by this reporter shows the failing tests in a compact format that is easy to grasp at a glance:
Here we can clearly see that addPrefix()
has some general problem while
the error in stripPrefix()
seems to be specific to IE.
The summary table is also useful if you want to (ab-)use karma to run feature tests, like checking which standard string functions are available:
We can see that IE is lacking some features here.
With npm:
npm install --save-dev karma-summary-reporter
With yarn:
yarn add --dev karma-summary-reporter
module.exports = function(config) {
config.set({
reporters: ['progress', 'summary'],
summaryReporter: {
// 'failed', 'skipped' or 'all'
show: 'failed',
// Limit the spec label to this length
specLength: 50,
// Show an 'all' column as a summary
overviewColumn: true
}
});
};
Select which tests are displayed in the summary. There are three choices:
'failed'
: Only show tests that failed in some browser (default)'skipped'
: Additionally show tests that got skipped in some browser'all'
: Show all test, also ones that didn't failSpace reserved to display the spec label (width of the first column in the results table).
Shows a overview column in the results table, showing the total result of
a test over all browsers ("failed" if the test failed anywhere, ...). In
the above examples this is the column with the "all" header. Setting this
option to false
disables this column.
This reporter just shows a summary of failed test cases once testing is complete, it doesn't show stack traces or other useful information about the failures.
To display these details, add an additional reporter to your karma.conf.js
that shows all the additional information you want to see. For example, to
run the summary reporter in addition to the spec
reporter you'd have this
configuration:
reporters: ['spec', 'summary']
Or with karma-mocha-reporter
your config could look like this:
reporters: ['mocha', 'summary']
mochaReporter: { output: 'minimal' }
FAQs
Displays a summary of tested browsers and failed testcases after a test run.
The npm package karma-summary-reporter receives a total of 3,764 weekly downloads. As such, karma-summary-reporter popularity was classified as popular.
We found that karma-summary-reporter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.