-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to disable screenshot data in logs #262
Option to disable screenshot data in logs #262
Conversation
The test assertions could be written a bit cleaner with Sinon.js, but I didn't want to add such a dependency only for two new tests. |
instead of nock do you mean? I thought sinon is for the browser. Maybe |
OK, I'll update the setting name to No, using sinon for asserting that
|
Updated setting name. |
@@ -90,8 +90,7 @@ module.exports = (function() { | |||
}); | |||
|
|||
response.on('end', function () { | |||
var screenshotContent; | |||
var result, errorMessage = ''; | |||
var screenshotContent, result, resultLog = {}, errorMessage = ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really in favour of the one-line var statement style as the standard throughout the project is one variable per line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use npm module jscs
to enforce the preferred style guide for this project and husky
to enforce running such a code style check on pre-commit or pre-push.
Updated code based on code style requests. Also changed the implementation to overwrite the |
Setting the option `screenshot_data` in one of the `test_sestings` environment causes the screenshot base64 data to be outputted or hidden from the logs. Fixes #256
There seems to be some funkyness with Travis builds. But this branch passes all tests. |
Any chance on getting this merged soon? |
…dded context for global before and after hooks - based on #264
I changed the implementation slightly but it does the same thing. Hope that's ok. |
Sure, no problem. Thanks! |
Would be good to have this setting documented as well. |
Sure, it will be added soon. On Wed, Sep 17, 2014 at 12:31 PM, Valentin Agachi notifications@github.com
|
* 'master' of github.com:beatfactor/nightwatch: 0.5.26 Fixed #274 - screenshot data still displayed in logs 0.5.25 added option to automatically send the test module name to the selenium server in the desiredCapabilities - based on #254 Added option to disable screenshot data in logs - based on #262 and added context for global before and after hooks - based on #264
Setting the option
log_screenshot_data
in one of thetest_sestings
environmentcauses the screenshot base64 data to be outputted or hidden from the logs.
Fixed #256