Skip to content

Commit f76a9f9

Browse files
committed
Link build command to code coverage
1 parent 4eac3cd commit f76a9f9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

doc/build_command.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ retained, with the following flags:
127127

128128
### The `stack build --dependencies-only` flag
129129

130-
Set the flag to skip building the targets. The flag `--only-dependencies` has
130+
Pass the flag to skip building the targets. The flag `--only-dependencies` has
131131
the same effect.
132132

133133
### The `stack build --[no-]dry-run` flag
@@ -191,7 +191,7 @@ these, if a build fails. By default, they are not kept.
191191

192192
### The `stack build --only-dependencies` flag
193193

194-
Set the flag to skip building the targets. The flag `--dependencies-only` has
194+
Pass the flag to skip building the targets. The flag `--dependencies-only` has
195195
the same effect.
196196

197197
### The `stack build --[no-]reconfigure` flag
@@ -215,7 +215,7 @@ This option can be specified multiple times to skip multiple components.
215215

216216
### The `stack build --only-snapshot` flag
217217

218-
Set the flag to build only snapshot dependencies, which are cached and shared
218+
Pass the flag to build only snapshot dependencies, which are cached and shared
219219
with other projects.
220220

221221
## Other flags and options
@@ -225,14 +225,19 @@ all of them, please use `stack build --help`. Some particularly convenient ones
225225
worth mentioning here since they compose well with the rest of the build system
226226
as described:
227227

228+
### The `stack build --coverage` flag
229+
230+
Pass the flag to generate a code coverage report. For further information, see
231+
the [code coverage](coverage.md) documentation.
232+
228233
### The `stack build --exec` option
229234

230235
`stack build --exec "<command> [<arguments>]"` will run a command after a
231236
successful build.
232237

233238
### The `stack build --file-watch` flag
234239

235-
Set the flag to rebuild your project every time a file changes. By default it
240+
Pass the flag to rebuild your project every time a file changes. By default it
236241
will take into account all files belonging to the targets you specify. See also
237242
the `--watch-all` flag.
238243

@@ -261,7 +266,7 @@ Unset the flag to disable this behaviour. When disabled:
261266

262267
### The `stack build --watch-all` flag
263268

264-
Set the flag to rebuild your project every time any local file changes (from
269+
Pass the flag to rebuild your project every time any local file changes (from
265270
project packages or from local dependencies). See also the `--file-watch` flag.
266271

267272
## Composition

0 commit comments

Comments
 (0)