Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the most modern way to handle Haskell testing?

I only recently started working on my latest Haskell project, and would really like to test it. I was wondering where testing currently stands, with regards to the cutting edge frameworks, test running procedures and test code organization. It seems that previously tests were just a separate binary that returned a different exit code if tests passed or failed - is this still the currently adopted setup, or are there other ways to integrate with cabal now?

like image 543
ocharles Avatar asked Nov 13 '22 15:11

ocharles


1 Answers

Quickcheck may not be cutting edge anymore (at least for Haskell practitioners). But in combination with HUnit it's quite easy to get almost 100% coverage (I use HPC for converage analysis).

like image 93
jeha Avatar answered Dec 10 '22 08:12

jeha