| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This plugin takes a snapshot of the current page HTML and saves it to a file when a test fails.
npm i --save-dev @codeceptjs-plugins/html-snapshot-on-failyarn add --dev @codeceptjs-plugins/html-snapshot-on-failexports.config = {
plugins: {
htmlSnapshotOnFail: {
require: "@codeceptjs-plugins/html-snapshot-on-fail",
enabled: true
}
}
}const path = require('path')
exports.config = {
plugins: {
htmlSnapshotOnFail: {
require: "@codeceptjs-plugins/html-snapshot-on-fail",
enabled: true,
rootDir: path.resolve('output'),
dirname: 'error-html-snapshots'
}
}
}exports.config = {
plugins: {
allure: {
require: "<require path>",
},
htmlSnapshotOnFail: {
require: "@codeceptjs-plugins/html-snapshot-on-fail",
enabled: true,
reporter: 'allure' // key of registered allure plugin in "exports.config.plugins"
}
}
}| Back | FazBrowse Home | New Git URL |