From 96d4b4699d6600bb9d8051ccbe3039d93372a622 Mon Sep 17 00:00:00 2001 From: Chris Andrejewski Date: Wed, 30 Aug 2017 16:50:05 -0400 Subject: [PATCH] Use Spec as default reporter --- README.md | 6 +++--- examples/testee.json | 4 ++-- lib/defaults.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4d8373c..ab11486 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ On the command line, you have the following options available: * `-b`, `--browsers` `[name]`: A comma separated list of browsers you want to run (default: `phantom`) * `-R`, `--root [path|URL]`: The server root path or URL the files are relative to * `-p`, `--port` `[port]`: The port to run the server on (default: `3621`) -* `-r`, `--reporter` `[name]`: The name of the reporter to use (default: `Dot`) +* `-r`, `--reporter` `[name]`: The name of the reporter to use (default: `Spec`) * `-c`, `--config` `[file]`: Use this JSON or JS configuration file (can be overridden by command line options) * `--timeout` `[seconds]`: The per test timeout (in seconds) * `--delay` `[ms]`: When running multiple tests, the time to wait for the browser to shut down before starting it with a new page. @@ -105,7 +105,7 @@ A simple, local browser config (JSON) example with mostly default values could l { "port": 3621, "root": "/var/www/app/", - "reporter": "dot", + "reporter": "Spec", "timeout": 120, "delay": 1000, "tunnel": { @@ -163,7 +163,7 @@ The port of the static fileserver used to serve the tests. This will also be use #### `reporter` Type: `String` -Default value: `'dot'` +Default value: `'Spec'` See [Mocha reporters](https://mochajs.org/#reporters). #### `root` diff --git a/examples/testee.json b/examples/testee.json index 0810396..8308faf 100644 --- a/examples/testee.json +++ b/examples/testee.json @@ -9,5 +9,5 @@ "username": "browserstackuser", "password": "supersecret" }, - "reporter": "Dot" -} \ No newline at end of file + "reporter": "Spec" +} diff --git a/lib/defaults.js b/lib/defaults.js index d40a9b8..aa0cbe8 100644 --- a/lib/defaults.js +++ b/lib/defaults.js @@ -10,7 +10,7 @@ module.exports = function(options) { var opts = _.defaults({}, options, { port: 3621, root: process.cwd(), - reporter: 'Dot', + reporter: 'Spec', adapter: '/testee/', timeout: 120, delay: 1000