CONTRIBUTING: suggest using a cabal.project.local file (#7153)

This commit is contained in:
Albert Krewinkel 2021-03-16 16:34:38 +01:00 committed by GitHub
parent ff0fcedcb3
commit 84b7a15375
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,9 +244,16 @@ Or with stack:
stack test --test-arguments='-p markdown'
It is often helpful to add `-j4` (run tests in parallel)
and `--hide-successes` (don't clutter output with successes)
to the test arguments as well.
It is often helpful to add `-j4` (run tests in parallel) and
`--hide-successes` (don't clutter output with successes) to the test
arguments as well. Collecting all options in a `cabal.project.local`
file in the project's root directory can help to keep `cabal`
commands short. E.g.:
flags: +embed_data_files
tests: True
test-show-details: direct
test-options: -j4 --hide-successes
If you add a new feature to pandoc, please add tests as well, following
the pattern of the existing tests. The test suite code is in