Haskell testing workflow

前端 未结 4 1288
萌比男神i
萌比男神i 2020-12-07 06:55

I just started a new Haskell project and wanted to set up a good testing workflow from the beginning. It seems like Haskell has a lot of excellent and unique testing tools

4条回答
  •  隐瞒了意图╮
    2020-12-07 07:19

    The test-framework package is really awesome. You can easily integrate HUnit and QuickCheck tests, and get executables that run specified suites only, based on command-line flags, with multiple output targets.

    Testing and profiling are different beasts though. For profiling I'd set up a separate executable that stresses just the section you want to profile, and just looking carefully at the results of profiling builds and runs (with -prof-auto-all for compilation and +RTS -p for a runtime flag).

提交回复
热议问题