Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

visreg-config-files

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

visreg-config-files

A visual regression testing setup with Webdriver and Browserstack.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

The steps in this readme can be followed to setup visual regression testing on a new project. They only need to be followed once per-project.

This file should not be included in the repo.

Install Java command line tools

Install the latest Java JDK (not JRE)

Require all the things

npm install --save-dev webdriverio chai node-notifier wdio-mocha-framework wdio-browserstack-service wdio-visual-regression-service

Add the test scripts to package.json

Details in the included package.json

Update the .gitignore

The only screenshots we want to commit to the repo are the baselines, so we need to ignore the others.

Details in the included .gitignore

Copy config files

Copy all of the included config files (and optionally the associated markdown files) to your repo. These should retain their folder structure and look like this when you're done:

project
│    VISREG-README.md
│    wdio.conf.js
│    wdio.conf.md
│    wdio.conf.quick.js
│    wdio.conf.quick.md
│
└──- tests
│    │    example-tests.md
│    │
│    └──- config
│         │    globalHides.js
│         │    globalHides.md
│         │    viewports.js
│         │    viewports.md

Update the WebdriverIO config file

Defining new browsers/OSs

There's a configuration tool at https://www.browserstack.com/automate/capabilities

Select the OS and browser of choice and enter the information into the "capabilities" array of the appropriate wdio.conf file.

Note: When entering browser info, if you omit the browser version, the latest stable release will be used. Typically, this is the best option, unless you need to support previous browser versions. IE9 or IE10, for example.

FAQs

Package last updated on 18 Feb 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc