Add info about command test naming to CONTRIBUTING

Added a paragraph about naming conventions for tests in `test/command/`
to the contributors guide. Advises to include issue number and/or
feature being tested.
This commit is contained in:
Florian B 2019-10-16 12:44:30 +02:00 committed by John MacFarlane
parent a933ad30fb
commit c55651d761

View file

@ -187,6 +187,9 @@ modify `test/Tests/Old.hs`. Otherwise, it is better to modify the module
under the `test/Tests` hierarchy corresponding to the pandoc module you
are changing. Alternatively, you may add a "command test" to
the `/test/command/` hierarchy, following the pattern of the tests there.
These test files should have a meaningful name, which can include the issue
number and/or the feature that's being tested. For example, `5474-tables.md`
refers to both issue and feature.
You can rebuild the golden tests in `tests/` by passing
`--accept` to the test script. (If you're using stack, `stack