Skip to content
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

Merged
merged 15 commits into from
Nov 11, 2019
Merged

Quickcheck property tests #128

merged 15 commits into from
Nov 11, 2019

Conversation

cptrodolfox
Copy link
Contributor

@cptrodolfox cptrodolfox commented Oct 31, 2019

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.

@cptrodolfox
Copy link
Contributor Author

Introduced one more property test for mkGenericCmd and unGenericCmd and solved conflicts.

@juanpaucar
Copy link
Contributor

@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

@cptrodolfox
Copy link
Contributor Author

@juanpaucar Fix the haddock errors.

@juanpaucar
Copy link
Contributor

@cptrodolfox It looks like newer versions of GHC are still failing during CI

@cptrodolfox
Copy link
Contributor Author

cptrodolfox commented Nov 11, 2019

There is problem with Haddock coverage and the different version of ghc.
For versions of ghc <= 8.2.2 haddock determines that module without comments for the instances declaration are not 100%. However, for versions of ghc > 8.2.2 haddock determines that the same modules have 100% coverage. This might be related to this issue haskell/haddock#123. Therefore, added quick fix where in .travis.yml the check now includes 4 or 5.

Copy link
Contributor

@juanpaucar juanpaucar left a 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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?)

Copy link
Contributor

@juanpaucar juanpaucar Apr 25, 2020

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.

@juanpaucar juanpaucar merged commit f8a869c into master Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants