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.
npm i vrt-tool
Add VRT scripts to your project package.json
file
{
"scripts": {
"vrt-init": "vrt-tool init",
"vrt-setup": "vrt-tool setup",
"vrt-test": "vrt-tool test",
"vrt-reports": "vrt-tool reports"
}
}
Then run
npm run vrt-init
This will create vrt.config.js
file and .vrt
directory in your project root.
Open the vrt.config.js
file and add testing scenarios.
Example:
module.exports = {
scenarios: [
{
name: 'Homepage',
sourceUrl: 'http://localhost:10008/home',
testUrl: 'http://localhost:10008/home',
onPage: async page => {
await page.waitForTimeout(3000);
},
},
],
};
onPage
callback will receive the page
argument which is the
Puppeteer's Page class instance.
Run npm run vrt-setup
This command will take a screenshot of sourceUrl
for each defined scenario.
Make changes to sourceUrl
page (edit html, etc. )
Run npm run vrt-test
This will take a screenshot of testUrl
and compare it with sourceUrl
screenshot.
If sourceUrl
and testUrl
screenshots don't match, a report will be generated.
Report will be generated each time when sourceUrl
and testUrl
screenshots don't match.
You can list all reports by running npm run vrt-reports
FAQs
Visual Regression Testing Tool
The npm package vrt-tool receives a total of 1 weekly downloads. As such, vrt-tool popularity was classified as not popular.
We found that vrt-tool 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.
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.