Skip to content

Removes console logs from browser from karma testing output#3207

Merged
offtherailz merged 1 commit intogeosolutions-it:masterfrom
mbarto:console_log_clean_in_test
Oct 4, 2018
Merged

Removes console logs from browser from karma testing output#3207
offtherailz merged 1 commit intogeosolutions-it:masterfrom
mbarto:console_log_clean_in_test

Conversation

@mbarto
Copy link
Copy Markdown
Contributor

@mbarto mbarto commented Oct 1, 2018

Description

Fix #3161.
Completely removes console.log output from browser from karma-runner output during tests, so that test report is clean and does not contain browser generated stuff.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
A lot of noise in test running output, mostly setState error from react-widgets NumberPicker, but not limited to that.

What is the new behavior?
No noise from browser output, and a cleaner report.

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@ghost ghost assigned mbarto Oct 1, 2018
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 81.075% when pulling d845e46 on mbarto:console_log_clean_in_test into dc4084c on geosolutions-it:master.


browserConsoleLogOptions: {
terminal: true,
level: 'DISABLE'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did you found this option? I see LOG_DISABLE here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've seen the browserConsoleLogOptions. I meant level: 'DISABLE' instead of options.LOG_DISABLE. I'm sure that @mbarto used the right value, but I'd like to check from where this string comes.

@offtherailz offtherailz merged commit 264ef58 into geosolutions-it:master Oct 4, 2018
offtherailz added a commit that referenced this pull request Oct 4, 2018
tdipisa pushed a commit that referenced this pull request Oct 4, 2018
* Revert "Removes console logs from browser from karma testing output (#3207)"

This reverts commit 264ef58.

* Revert "Fix #3209 show/hide title translations in layer settings (#3210)"

This reverts commit 415e63d.

* Revert "Fixes #2669: use https version of geosolutions maven repo (#3182)"

This reverts commit dc4084c.

* Revert "Automatic definition of proj codes from configuration in OpenLayers maps (#3133)"

This reverts commit 70ee3b9.

* Revert "Fix #3192 setting the default layer as object (#3199)"

This reverts commit fe50170.

* Revert "Fix #2298 de-DE translation fix (#3205)"

This reverts commit e39348a.

* Revert "hiding div to allow playing/showing the video (#3188)"

This reverts commit a7c9e66.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants