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({
faultTolerant: false
});
// Options from cli
casper.options.verbose = casper.cli.get('direct') || false;
casper.options.logLevel = casper.cli.get('log-level') || "error";
// Overriding Casper.open to prefix all test urls
casper.setFilter('open.location', function(location) {
if (!/^http/.test(location)) {
......