tag:blogger.com,1999:blog-21123659.post2486897122588806407..comments2023-05-03T09:30:17.042+02:00Comments on koweycode: practical QuickCheck revisited - separate testing hierarchykoweyhttp://www.blogger.com/profile/11175806459477851520noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-21123659.post-40487346251499659602011-03-30T19:21:07.564+02:002011-03-30T19:21:07.564+02:00Somewhat related to 6. I've also found that my...Somewhat related to 6. I've also found that my ability to write clear tests for my exported functions can serves as a check on the completeness of the functionality offered by a module. Of course, this is not always the case, but it's a nice additional check to have.Christopher Lewisnoreply@blogger.comtag:blogger.com,1999:blog-21123659.post-50825196411185947462011-02-20T19:03:33.930+01:002011-02-20T19:03:33.930+01:00Yitz, many libraries seems to put them directly in...Yitz, many libraries seems to put them directly into tests/. I guess once you have a large collection you'll need to start a hierarchy under that directory.Johan Tibellhttps://www.blogger.com/profile/06875432206357419172noreply@blogger.comtag:blogger.com,1999:blog-21123659.post-44291471779022471462011-02-20T08:47:44.145+01:002011-02-20T08:47:44.145+01:00I agree with the spirit of your original idea, tho...I agree with the spirit of your original idea, though - that there should be a standard place to find the tests. While the new test-suite stanza in Cabal will make it easy for machines to find the tests, there is still value in having a standard place where humans can expect to find them. Perhaps .Tests.testSuite would be good.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-21123659.post-30716130980378316872011-02-19T14:10:03.563+01:002011-02-19T14:10:03.563+01:00Another option for testing internal functions is e...Another option for testing internal functions is exporting them in a .Internal module. This is a relatively common pattern (e.g. in bytestring and text), and it also allows people to use your internal building blocks in unexpected ways.Erikhttps://www.blogger.com/profile/02568689299691204801noreply@blogger.comtag:blogger.com,1999:blog-21123659.post-7026282778972654202011-02-18T17:20:06.065+01:002011-02-18T17:20:06.065+01:00Nice, Johan! I'll be looking forward to try i...Nice, Johan! I'll be looking forward to try it. I knew I forgot something. Was mentioning to add a note about hoping to put Thomas' GSoC work to use. We'll see if I have anything to say having tried it out at some point.koweyhttps://www.blogger.com/profile/11175806459477851520noreply@blogger.comtag:blogger.com,1999:blog-21123659.post-72262306567694337752011-02-18T16:58:39.802+01:002011-02-18T16:58:39.802+01:00Instead of creating an executable stanza you can u...Instead of creating an executable stanza you can use Cabal's new testing support (the test-suite stanza). Available in Cabal 1.10.Johan Tibellhttps://www.blogger.com/profile/06875432206357419172noreply@blogger.com