15
votes

There's an incredible lack of decent documentation on HTF. All I could find was a Tutorial which doesn't provide any of the following really important information:

  1. How do I create a test suite that automatically executes all tests from packages?
  2. What exactly are those "Black box tests" of HTF and how do I create them?
  3. What are the actual standards of setting up a test suite based on HTF (source root, packages and modules structure, cabal)?
1
A nice canonical example package would be good. I looked through a bunch of Haskell projects on Github (maybe not the best source, but still...) to see how they did tests, and everybody did it at least a little differently. - Tikhon Jelvis
I would contact the author of the package. - jberryman
@jberryman I actually did and pointed him to this question. I guess we'll have to wait. - Nikita Volkov
Sorry for such a late reply, but I've seen this thread here only lately. The new release 0.9.0.0 of HTF now comes with quite a lot of documentation. Also, I moved development to github.com/skogsbaer/HTF. I hope this will make it easier for people to use HTF and to ask questions about HTF. Feel free to do so! - stefanwehr
@stefanwehr Thanks! Please post your comment as answer so I can accept it. - Nikita Volkov

1 Answers

7
votes

The new release 0.9.0.0 of HTF (see http://hackage.haskell.org/package/HTF-0.9.0.0 and https://github.com/skogsbaer/HTF/) hopefully answers all your questions. I'll summarize: