Commit 11a5e31f 11a5e31f4b06741145b4092b38ace7a1db5ef510 by Nicolas Perriault

added `--log-level` and `--direct` options to `casper test` command

1 parent 4b1a8b2c
...@@ -10,6 +10,10 @@ var casper = require('casper').create({ ...@@ -10,6 +10,10 @@ var casper = require('casper').create({
10 faultTolerant: false 10 faultTolerant: false
11 }); 11 });
12 12
13 // Options from cli
14 casper.options.verbose = casper.cli.get('direct') || false;
15 casper.options.logLevel = casper.cli.get('log-level') || "error";
16
13 // Overriding Casper.open to prefix all test urls 17 // Overriding Casper.open to prefix all test urls
14 casper.setFilter('open.location', function(location) { 18 casper.setFilter('open.location', function(location) {
15 if (!/^http/.test(location)) { 19 if (!/^http/.test(location)) {
......