1 day - Write tests for core functionality
Opened this issue · 3 comments
freeman42x commented
Quests:
- Move
Everything.hs
tolib
(Lib
?) folder - Create a folder for tests
tests
- Add the test file associated to
Everything.hs
to thetests
folder - Add
hedgehog
: https://hackage.haskell.org/package/hedgehog, hedgehog is basically a better QuickCheck - Research which non-property based testing framework is best for this project and add it
- List
- Notes
- Possible that a non-property test based lib might not be needed as Hedgehog might contain methods for doing this kind of tests also or a hedgehog extension lib
- HUnit vs. HSpec: https://www.reddit.com/r/haskell/comments/2g2hxk/hunit_or_hspec/
- Write tests for core functionality
- Property-based
- Non-property based
GanttStart: 2021-03-29
GanttDue: 2021-03-30
F15Ky commented
Can we close this issue and instead follow the process of adding unit tests just before adding the functionality so its Test Driven Development
freeman42x commented
freeman42x commented
@F15Ky please create a PR with only the code for this quest.