Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pavkam/codeceptjs-browserlogs-plugin
Browser Logs Recorder for CodeceptJS.
https://github.com/pavkam/codeceptjs-browserlogs-plugin
codeceptjs
Last synced: 4 days ago
JSON representation
Browser Logs Recorder for CodeceptJS.
- Host: GitHub
- URL: https://github.com/pavkam/codeceptjs-browserlogs-plugin
- Owner: pavkam
- License: mit
- Created: 2020-10-30T13:36:19.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T18:37:31.000Z (2 months ago)
- Last Synced: 2024-10-15T09:17:03.077Z (22 days ago)
- Topics: codeceptjs
- Language: JavaScript
- Homepage:
- Size: 66.4 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Browser Logs Recorder for CodeceptJS
[CodeceptJs](https://codecept.io) plugin that will save browser logs for each failed test. Use this plugin if your web app generates useful logs recorded by the browser.
The following helpers are supported:
* Playwright
* Protractor
* Puppeteer
* TestCafe
* WebDriver## Setup
Install the plugin using:
```shell
npm i codeceptjs-browserlogs-plugin --save
```Add the helper to your `codecept.conf.js` file:
```js
plugins: {
BrowserLogsOnFail: {
enabled: true,
uniqueNames: true,
require: 'codeceptjs-browserlogs-plugin'
},
}
```Set the `enabled` property explicitly to `false` to disable the plugin. To generate unique names for each log file (useful in automated testing) use the `uniqueNames` property.
And that is basically it. No other configuration is required.