How to separate production and test code in Haskell

后端 未结 3 1555
广开言路
广开言路 2021-02-15 09:22

In other languages I like to put my unit tests in a different directory structure from the production code to keep things cleanly separated. Is there a typical convention in Has

3条回答
  •  梦谈多话
    2021-02-15 09:51

    I think the best example I've came so far for that is the snap project

    http://github.com/snapframework/snap-core

    Check the test folder, they develop their own cabal package just for testing, and have a shell script (runTestAndCoverage.sh) that executes the final compiled test suite.

    Good Luck.

提交回复
热议问题