Skip to content

Commit 0a6e2df

Browse files
committed
Always use verbose reporter
1 parent bd0ef39 commit 0a6e2df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+131
-2523
lines changed

docs/05-command-line.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Options:
3838
--timeout, -T Set global timeout (milliseconds or human-readable,
3939
e.g. 10s, 2m) [string]
4040
--update-snapshots, -u Update snapshots [boolean]
41-
--verbose, -v Enable verbose output [boolean]
41+
--verbose, -v Enable verbose output (no-op in AVA 4) [boolean]
4242
--watch, -w Re-run tests when files change [boolean]
4343

4444
Examples:
@@ -224,14 +224,16 @@ This deletes all files in the `node_modules/.cache/ava` directory.
224224

225225
## Reporters
226226

227-
By default AVA uses a minimal reporter:
227+
AVA 4 uses a human readable reporter:
228+
229+
<img src="../media/verbose-reporter.png" width="294">
230+
231+
AVA 3 defaults to a less verbose reporter:
228232

229233
<img src="../media/mini-reporter.gif" width="460">
230234

231235
Use the `--verbose` flag to enable the verbose reporter. This is always used in CI environments unless the [TAP reporter](#tap-reporter) is enabled.
232236

233-
<img src="../media/verbose-reporter.png" width="294">
234-
235237
### TAP reporter
236238

237239
AVA supports the TAP format and thus is compatible with [any TAP reporter](https://github.com/sindresorhus/awesome-tap#reporters). Use the `--tap` flag to enable TAP output.

docs/06-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Arguments passed to the CLI will always take precedence over the CLI options con
5252
- `failWithoutAssertions`: if `false`, does not fail a test if it doesn't run [assertions](./03-assertions.md)
5353
- `environmentVariables`: specifies environment variables to be made available to the tests. The environment variables defined here override the ones from `process.env`
5454
- `tap`: if `true`, enables the [TAP reporter](./05-command-line.md#tap-reporter)
55-
- `verbose`: if `true`, enables verbose output
55+
- `verbose`: if `true`, enables verbose output (no-op in AVA 4)
5656
- `snapshotDir`: specifies a fixed location for storing snapshot files. Use this if your snapshots are ending up in the wrong location
5757
- `extensions`: extensions of test files. Setting this overrides the default `["cjs", "mjs", "js"]` value, so make sure to include those extensions in the list. [Experimentally you can configure how files are loaded](#configuring-module-formats)
5858
- `require`: extra modules to require before tests are run. Modules are required in the [worker processes](./01-writing-tests.md#process-isolation)

lib/cli.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const FLAGS = {
8888
verbose: {
8989
alias: 'v',
9090
coerce: coerceLastValue,
91-
description: 'Enable verbose output',
91+
description: 'Enable verbose output (no-op)',
9292
type: 'boolean'
9393
},
9494
watch: {
@@ -432,8 +432,7 @@ export default async () => { // eslint-disable-line complexity
432432
projectDir,
433433
reportStream: process.stdout,
434434
stdStream: process.stderr,
435-
watching: combined.watch,
436-
verbose: debug !== null || combined.verbose || isCi || !process.stdout.isTTY
435+
watching: combined.watch
437436
});
438437

439438
api.on('run', plan => {

0 commit comments

Comments
 (0)