From 28415a79d5e164f7c92a7c837149d296c7458cbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Wed, 20 Aug 2014 09:49:55 +0200 Subject: [PATCH] Outputs the phantomas command in the console --- app/lib/phantomasWrapper.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/lib/phantomasWrapper.js b/app/lib/phantomasWrapper.js index b866fe2..1d77181 100644 --- a/app/lib/phantomasWrapper.js +++ b/app/lib/phantomasWrapper.js @@ -58,6 +58,14 @@ var PhantomasWrapper = function() { ].join(',') }; + // Output the command line for debugging purpose + console.log('If you want to reproduce the phantomas with command line:'); + var optionsString = ''; + for (var opt in options) { + optionsString += ' ' + '--' + opt + '=' + options[opt]; + } + console.log('node node_modules/phantomas/bin/phantomas.js --url=' + task.url + optionsString + ' --verbose'); + // It's time to launch the test!!! var triesNumber = 3;