How to use the chimp.captureAllStepScreenshots function in chimp

To help you get started, we’ve selected a few chimp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TheBrainFamily / chimpy / dist / lib / cucumberjs / hooks.js View on Github external
function shouldTakeScreenshot(stepResult) {
    return booleanHelper.isTruthy(process.env['chimp.captureAllStepScreenshots']) || stepResult.getStatus() !== 'passed' && booleanHelper.isTruthy(process.env['chimp.screenshotsOnError']);
  }