Jelajahi Sumber

Outputs the phantomas command in the console

Gaël Métais 11 tahun lalu
induk
melakukan
28415a79d5
1 mengubah file dengan 8 tambahan dan 0 penghapusan
  1. 8 0
      app/lib/phantomasWrapper.js

+ 8 - 0
app/lib/phantomasWrapper.js

@@ -58,6 +58,14 @@ var PhantomasWrapper = function() {
             ].join(',')
             ].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!!!
         // It's time to launch the test!!!
         var triesNumber = 3;
         var triesNumber = 3;