You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -129,8 +130,6 @@ AVA comes with an intelligent watch mode. [Learn more in its recipe](docs/recipe
129
130
130
131
## CLI
131
132
132
-

133
-
134
133
```console
135
134
$ ava --help
136
135
@@ -169,6 +168,39 @@ Directories are recursed, with all `*.js` files being treated as test files. Dir
169
168
170
169
When using `npm test`, you can pass positional arguments directly `npm test test2.js`, but flags needs to be passed like `npm test -- --verbose`.
171
170
171
+
## Reporters
172
+
173
+
### Mini-reporter
174
+
175
+
The mini-reporter is the default reporter.
176
+
177
+

178
+
179
+
### Verbose reporter
180
+
181
+
The verbose reporter is always used in CI environments unless [`--tap`](#tap-reporter) is specified. Use the [`--verbose` flag](#verbose-reporter) to enable verbose output.
182
+
183
+
<imgsrc="media/screenshot.png"width="150">
184
+
185
+
### TAP reporter
186
+
187
+
AVA supports the TAP format and thus is compatible with any [TAP reporter](https://github.com/sindresorhus/awesome-tap#reporters). Use the [`--tap` flag](#tap-reporter) to enable TAP output.
188
+
189
+
```console
190
+
$ ava --tap | tap-nyan
191
+
```
192
+
193
+
<imgsrc="media/tap-output.png"width="398">
194
+
195
+
Please note that the TAP reporter is unavailable when using [watch mode](#watch-it).
196
+
197
+
### Clean stack traces
198
+
199
+
AVA automatically removes unrelated lines in stack traces, allowing you to find the source of an error much faster.
200
+
201
+
<imgsrc="media/stack-traces.png"width="300">
202
+
203
+
172
204
## Configuration
173
205
174
206
All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt.
@@ -641,7 +673,7 @@ You can customize how AVA transpiles the test files through the `babel` option i
641
673
642
674
You can also use the special `"inherit"` keyword. This makes AVA defer to the Babel config in your [`.babelrc` or `package.json` file](https://babeljs.io/docs/usage/babelrc/). This way your test files will be transpiled using the same config as your source files without having to repeat it just for AVA:
643
675
644
-
```json
676
+
```json
645
677
{
646
678
"babel": {
647
679
"presets": [
@@ -743,24 +775,6 @@ test.cb(t => {
743
775
});
744
776
```
745
777
746
-
### Optional TAP output
747
-
748
-
AVA can generate TAP output via `--tap` option for use with any [TAP reporter](https://github.com/sindresorhus/awesome-tap#reporters).
749
-
750
-
```console
751
-
$ ava --tap | tap-nyan
752
-
```
753
-
754
-
<imgsrc="media/tap-output.png"width="398">
755
-
756
-
Please note that the TAP reporter is unavailable when using [watch mode](#watch-it).
757
-
758
-
### Clean stack traces
759
-
760
-
AVA automatically removes unrelated lines in stack traces, allowing you to find the source of an error much faster.
761
-
762
-
<imgsrc="media/stack-traces.png"width="300">
763
-
764
778
### Global timeout
765
779
766
780
A global timeout can be set via the `--timeout` option.
@@ -982,10 +996,6 @@ Tape and tap are pretty good. AVA is highly inspired by their syntax. They too e
982
996
983
997
In contrast AVA is highly opinionated and runs tests concurrently, with a separate process for each test file. Its default reporter is easy on the eyes and yet AVA still supports TAP output through a CLI flag.
984
998
985
-
### How can I use custom reporters?
986
-
987
-
AVA supports the TAP format and thus is compatible with any [TAP reporter](https://github.com/sindresorhus/awesome-tap#reporters). Use the [`--tap` flag](#optional-tap-output) to enable TAP output.
988
-
989
999
### How is the name written and pronounced?
990
1000
991
1001
AVA, not Ava or ava. Pronounced [`/ˈeɪvə/` ay-və](media/pronunciation.m4a?raw=true).
0 commit comments