I would like to generate one coverage report per test run, instead of for a whole test suite. What I do is that I extract all individual tests then run TASTY_PATTERN=testname stack test proj --coverage for each test, archiving the generated HTML report file between each test. This works but the generated reports are always reporting values as if all tests had been run, with coverage information in files that could not possibly have been touch by a test.
What do I need to do to properly cleanup the data and generate this information?
stack clean; stack build; stack path --local-hpc-root PATH-FOR-projA; stack test projA --coverageand so on. An other solution is described in the stack docs - palik