Reputation: 582
I'm quite a beginner to Yesod and not experienced with Cablal - I used the scaffolding tool to initialise a new Yesod project, wrote some handlers and other code and now I'm struggling with adding some HUnit tests - how to do this in a best way? Using cabal's test-suite option? If yes then how exactly? Some examples of the .cabal file and how to run the tests would be helpful.
Upvotes: 4
Views: 255
Reputation: 3428
yes, you should use the cabal test suite. There is a pull request on github to add testing to the default Yesod scaffold. It will be merged soon.
Upvotes: 0