Socket
Socket
Sign inDemoInstall

protractor-beautiful-reporter

Package Overview
Dependencies
8
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.9 to 1.2.10

4

app/reporter.js

@@ -189,2 +189,3 @@ var util = require('./util'),

options.takeScreenShotsOnlyForFailedSpecs || false;
this.disableScreenshots = options.disableScreenshots || false;
this.clientDefaults = options.clientDefaults || {};

@@ -203,2 +204,3 @@ if (options.searchSettings) { //settings in earlier "format" there?

takeScreenShotsForSkippedSpecs: this.takeScreenShotsForSkippedSpecs,
disableScreenshots: this.disableScreenshots,
metaDataBuilder: this.metaDataBuilder,

@@ -344,3 +346,3 @@ pathBuilder: this.pathBuilder,

let considerScreenshot = !(this._screenshotReporter.takeScreenShotsOnlyForFailedSpecs && result.status === 'passed')
let considerScreenshot = !this._screenshotReporter.disableScreenshots && !(this._screenshotReporter.takeScreenShotsOnlyForFailedSpecs && result.status === 'passed')

@@ -347,0 +349,0 @@ if (considerScreenshot) {

# Changelog
## Version 1.2.10
* Added option for disabling all screenshots
## Version 1.2.9

@@ -4,0 +6,0 @@ * Added favico (from angulars) to report page

@@ -21,3 +21,3 @@ {

"protractor": "^5.1.1",
"protractor-beautiful-reporter": "^1.2.7",
"protractor-beautiful-reporter": "^1.2.9",
"selenium-webdriver": "^3.4.0",

@@ -24,0 +24,0 @@ "webdriver-manager": "^12.0.6"

@@ -27,2 +27,5 @@ var HtmlReporter = require('protractor-beautiful-reporter');

/* direct connect on my local system*/
directConnect:!!process.env.CHROMIUM_BIN,
// Chromedriver location is used to help the selenium standalone server

@@ -57,3 +60,11 @@ // find chromedriver. This will be passed to the selenium jar as

// https://code.google.com/p/selenium/source/browse/javascript/webdriver/capabilities.js
capabilities: {
capabilities:!!process.env.CHROMIUM_BIN?{
'browserName': 'chrome',
'applicationName': 'chromium',
'chromeOptions': {
'binary': process.env.CHROMIUM_BIN,
'args': ['--lang=en',
'--window-size=1680,1050']
}
}:{
browserName: 'chrome',

@@ -60,0 +71,0 @@ logName: 'Chrome - English',

{
"name": "protractor-beautiful-reporter",
"version": "1.2.9",
"version": "1.2.10",
"description": "An npm module and which generates your Protractor test reports in HTML (angular) with screenshots",

@@ -12,2 +12,3 @@ "main": "index.js",

"app:compile": "node --max_old_space_size=5760 ./node_modules/webpack/bin/webpack.js --config ./webpack.config.js",
"prepare": "npm run app:compile",
"test": "npm run test-app && npm run test-reporter",

@@ -14,0 +15,0 @@ "test-app": "node karma.pre.js && karma start karma.conf.js",

@@ -249,3 +249,15 @@ [![npm](https://img.shields.io/npm/v/protractor-beautiful-reporter.svg)](https://www.npmjs.com/package/protractor-beautiful-reporter)

### Disable all screenshots
If you want no screenshots at all, set the `disableScreenshots` option to true.
```javascript
new HtmlReporter({
baseDirectory: 'tmp/reports'
, disableScreenshots: true
});
```
Default is `false`.
### Add title for the html report (optional)

@@ -283,3 +295,18 @@ Also you can define a document title for the html report generated using the `docTitle:` option:

```
### Add custom css inline
If you want to add small customizations without replaceing the whole css file:
```javascript
new HtmlReporter({
baseDirectory: 'tmp/screenshots'
customCssInline:`
.mediumColumn:not([ng-class]) {
white-space: pre-wrap;
}
`
});
```
This example will enable line-wrapping if the tests spec contains newline characters
### Preserve base directory (optional)

@@ -286,0 +313,0 @@ You can preserve (or clear) the base directory using `preserveDirectory:` option:

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc