-
Notifications
You must be signed in to change notification settings - Fork 17
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
Quickcheck property tests #128
Conversation
Quickcheck quote See merge request wild_willy/hapistrano!1
Added quickcheck for trim and quoteCmd
Introduced one more property test for mkGenericCmd and unGenericCmd and solved conflicts. |
@cptrodolfox Do not forget about fixing the issue with the haddock not being able to generate the documentation for a file and another file not being totally covered by documentation |
@juanpaucar Fix the haddock errors. |
@cptrodolfox It looks like newer versions of GHC are still failing during CI |
There is problem with Haddock coverage and the different version of ghc. |
d4d3c6f
to
b2fe10d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Great Job
@@ -40,7 +40,7 @@ script: | |||
- cabal build --enable-tests | |||
- cabal test --enable-tests | |||
- cabal sdist | |||
- cabal haddock | grep "100%" | wc -l | grep "4" | |||
- cabal haddock | grep "100%" | wc -l | grep -G "[45]" # Fixes issue with different haddock coverage with different ghc versions https://github.com/haskell/haddock/issues/123 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I'm facing the same issue in ivanperez-keera/Yampa#72. What is this [45]
thing? Is this specific to your package or something that should work for other packages too? (and, if so, why?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be improved actually. However, this was used to ensure that the 5 exposed modules would have a 100% code coverage. But, with the changes, this PR introduced it was not the case for an instance. Just like mentioned on the linked issue.
Solves #47
Introduced two property tests for private functions quoteCmd and trim. As these functions were not exposed, change a little bit of the project structure. I will continue to add one more property test for mkGenericCommand and unGenericCommand.