Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
karma-trx-reporter
Advanced tools
Reporter for the VisualStudio TRX format.
Branch | Status |
---|---|
master | |
develop |
The easiest way is to keep karma-trx-reporter
as a devDependency in your package.json
.
{
"devDependencies": {
"karma": "~0.10",
"karma-trx-reporter": "~0.1"
}
}
You can simple do it by:
npm install karma-trx-reporter --save-dev
// karma.conf.js
module.exports = function(config) {
config.set({
plugins: [
...
require('karma-trx-reporter')
],
reporters: ['progress', 'trx'],
// the default configuration
trxReporter: {
outputFile: 'test-results.trx',
shortTestName: false
}
});
};
The output file specifies where the trx file will be written.
The trx reporter will attend the browser name to the test name by default. This can be switched off with the shortTestName config property.
You can provide a custom function to format the testName
field of the trx.
The nameFormatter
is a function with parameters (browser, result)
which returns a string.
When shortTestName
is true
, nameFormatter
is ignored.
You can pass list of reporters as a CLI argument too:
karma start --reporters trx,dots
For more information on Karma see the homepage.
FAQs
A Karma plugin. Report results in MSTest trx format.
The npm package karma-trx-reporter receives a total of 1,730 weekly downloads. As such, karma-trx-reporter popularity was classified as popular.
We found that karma-trx-reporter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.