Skip to content
Snippets Groups Projects
Commit ebc04335 authored by Georgy Lukyanov's avatar Georgy Lukyanov
Browse files

Add section on golden files to test/README.md

parent 8c807459
No related branches found
No related tags found
No related merge requests found
......@@ -13,3 +13,18 @@ For example, the testsuite can be invoked with:
```console
HPC=hpc GHC=ghc cabal test
```
## Managing the golden files
The tests in the `test/Markup` directory, are comparing the HTML output produced by `hpc markup` with the golden files stored in `test/Markup/golden`.
Call to update the golden files:
```
make update-golden
```
To compare an output file to a golden file while simultaneously pretty-printing both:
```
diff <(tidy -quiet test/Markup/gold/Recip/hpc_index.html) <(tidy -quiet test/Markup/input/Recip/hpc_index.html)
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment