Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andriilazebnyi/wdio-screenshots-cleanup-service
WebdriverIO service to cleanup screenshots folder before tests run.
https://github.com/andriilazebnyi/wdio-screenshots-cleanup-service
service wdio webdriverio webwedriverio-plugin
Last synced: 9 days ago
JSON representation
WebdriverIO service to cleanup screenshots folder before tests run.
- Host: GitHub
- URL: https://github.com/andriilazebnyi/wdio-screenshots-cleanup-service
- Owner: andriilazebnyi
- Created: 2017-03-28T21:54:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-03T11:16:47.000Z (almost 7 years ago)
- Last Synced: 2024-12-03T17:45:05.272Z (about 1 month ago)
- Topics: service, wdio, webdriverio, webwedriverio-plugin
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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`.
```json
{
"devDependencies": {
"wdio-screenshots-cleanup-service": "~0.0.7"
}
}
```You can simple do it by:
```bash
yarn add wdio-screenshots-cleanup-service -D
```Instructions on how to install `WebdriverIO` can be found [here.](http://webdriver.io/guide/getstarted/install.html)
## Usage
```js
// 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:
```sh
$ yarn build
```----
For more information on WebdriverIO see the [homepage](http://webdriver.io).