Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
js-reporters
Advanced tools
Readme
The Common Reporter Interface (CRI) for JavaScript Testing Frameworks.
Avoid this: | Do this: |
---|---|
See Common Reporter Interface for the latest version of the specification.
See also:
Help with AsciiDoc (used for the standard document):
In 2014, the QUnit team started discussing the possibility of interoperability between JavaScript testing frameworks such as QUnit, Mocha, Jasmine, Intern, Buster, etc. The "Common Reporter Interface" would be an allow integrations for output formats and communication bridges to be shared between frameworks. This would also benefit high-level consumers of these frameworks such as Karma, BrowserStack, SauceLabs, Testling, by having a standard machine-readable interface.
Our mission is to deliver:
.on()
and .off()
.Would you be interested in discussing this with us further? Please join in!
Listen to the events and receive the emitted data:
// Use automatic discovery of the framework adapter.
const runner = JsReporters.autoRegister();
// Listen to standard events, from any testing framework.
runner.on('testEnd', (test) => {
console.log('Test %s has errors:', test.fullName.join(' '), test.errors);
});
runner.on('runEnd', (run) => {
const counts = run.testCounts;
console.log('Testsuite status: %s', run.status);
console.log('Total %d tests: %d passed, %d failed, %d skipped',
counts.total,
counts.passed,
counts.failed,
counts.skipped
);
console.log('Total duration: %d', run.runtime);
});
// Or use one of the built-in reporters.
JsReporters.TapReporter.init(runner);
Testing framework | Supported | Last checked | Unresolved |
---|---|---|---|
QUnit | 1.20+ | ✅ qunit@2.14.1 (Apr 2021) | – |
Jasmine | 2.1+ | ✅ jasmine@3.7.0 (Apr 2021) | – |
Mocha | 1.18+ | ✅ mocha@8.3.2 (Apr 2021) | – |
See also past issues.
autoRegister()
Automatically detects which testing framework you use and attaches any adapters as needed, and returns a compatible runner object. If no framework is found, it will throw an Error
.
JsReporters.autoRegister();
Runners:
Reporters:
Testing frameworks:
Reporters and proxy layers:
FAQs
Common reporter interface for JavaScript testing frameworks.
The npm package js-reporters receives a total of 54,096 weekly downloads. As such, js-reporters popularity was classified as popular.
We found that js-reporters demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.