-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement unit tests for parseOwnerRepo
function
#35
Comments
This is interesting. Would love to help here. I will try it out. Might ask for help as I usually skip tests. ;-( Oops - sorry it seems like someone else is already assigned to this. Please ping me if this issue frees up. |
@StevenXL I just saw this. |
@kahlil29 I will try - if I run into problems, maybe we can pair on this at some point. Will write you an updated by this Friday (I'm in U.S. Central time). |
@chshersh |
@kahlil29 I can see why there is some confusion about testing libraries. In Haskell there exist at least two paradigms for testing:
This issue doesn't require to implement any property tests because we don't have properties for the function. Only a bunch unit tests for different cases. That's why it's enough to use only |
@chshersh Thanks for your patient and detailed, yet concise explanation of the types of testing and the different libraries involved. It really helped my understanding and made the implementation easier for me to do. |
* [#35] Implement Unit Tests for 'parseOwnerRepo' function * Add common-options import to test-suite in cabal file, remove extra opts * Formatting adjustments and addition of non-happy test case scenarios - Remove LANGUAGE pragmas - Format and arrange imports, add explicit imports - Minor improvements
This function:
hit-on/src/Hit/Issue.hs
Line 98 in 4f8d392
It would be nice to have several tests with the
hspec
library.The text was updated successfully, but these errors were encountered: