Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@rpii/wdio-html-reporter
Advanced tools
A reporter for webdriver.io which generates a HTML report. A fork of wdio-html-format-reporter
That project has not been updated and doesnt work with the latest webdriverio. Due to name conflict issues, this package had to be put in my user namespace. it is now in npm.
The easiest way is to keep the @rpii/wdio-html-reporter
as a devDependency in your package.json:
{
"devDependencies": {
"@rpii/wdio-html-reporter": "~0.5.0"
}
}
Or, you can simply do it with:
yarn add @rpii/wdio-html-reporter --dev
The following code shows the default wdio test runner configuration. Just add 'html-format' as another reporter to the array:
// wdio.conf.js
module.exports = {
// ...
reporters: ['spec',
['@rpii/wdio-html-reporter', {
debug: true,
outputDir: './reports/html-results/',
filename: 'report.html',
reportTitle: 'Test Report Title',
showInBrowser:true
}
]
]
// ...
};
logMessage(message) {
process.emit('test:log', message);
}
wdio.conf.js
afterTest: function (test) {
const path = require('path');
const moment = require('moment');
// if test passed, ignore, else take and save screenshot.
if (test.passed) {
return;
}
const timestamp = moment().format('YYYYMMDD-HHmmss.SSS');
const filepath = path.join('reports/html-reports/screenshots/', timestamp + '.png');
browser.saveScreenshot(filepath);
process.emit('test:screenshot', filepath);
},
FAQs
WebdriverIO report plugin. Create an HTML formatted report. compatible with webdriverio version 7
The npm package @rpii/wdio-html-reporter receives a total of 9,637 weekly downloads. As such, @rpii/wdio-html-reporter popularity was classified as popular.
We found that @rpii/wdio-html-reporter demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.