0.0.7 • Published 7 years ago

wdio-screenshots-cleanup-service v0.0.7

Weekly downloads
432
License
MIT
Repository
github
Last release
7 years ago

WDIO Screenshots Cleanup Service

Wdio service to cleanup screenshots before tests run.

Installation

The easiest way is to keep wdio-screenshots-cleanup-service as a devDependency in your package.json.

{
  "devDependencies": {
    "wdio-screenshots-cleanup-service": "~0.0.7"
  }
}

You can simple do it by:

yarn add wdio-screenshots-cleanup-service -D

Instructions on how to install WebdriverIO can be found here.

Usage

// wdio.conf.js
export.config = {
  // ...
  services: ['screenshots-cleanup'],
  // clean screenshots
  cleanScreenshotsFolder: {
    folder: 'screenshots',
    pattern: '/**/ERROR_*'
  },
  // ...
};

Where:

  • folder is absolute or relative path to your project screenshots folder
  • pattern is optional property to tell wdio-screenshots-clenup-service what pattern to apply before deleting screenshots

Development

All commands can be found in the package.json. The most important are:

Build package:

$ yarn build

For more information on WebdriverIO see the homepage.

0.0.7

7 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago