-
Notifications
You must be signed in to change notification settings - Fork 20
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
cabal test fails the second time #90
Comments
I don't see how: |
Because I removed the call to
I was planning to remove it after the test instead of before. |
Branch |
I guess I should explain why I removed it in the first place. I want The reason OptionParser uses Uncertain is so that warnings and errors may be raised while conversion from [String] to HawkSpec. When you suggested it, I thought it was a good idea to check whether the files passed as argument as readable or writable, but when I saw that you were also creating the folder, that raised a red flag. And now I no longer think we should check that the argument is readable or writable, only that the String is a proper FilePath. |
Ok, but I still think we should exit with the right error when the context directory hasn't the right permissions. IOExceptions on reading files can be problematic for the user, I think it is better to print a clean error when some IO actions doesn't work as expected. That's why I have done the check in that way. |
I agree. Let's add |
Since the test is explicitly checking that the parser is raising the warning, and we no longer want the parser to raise that warning, I have simply removed the part of the test which checks for the warning. I guess we'll have to wait for #26 in order to properly test that the warning is emitted. |
Merged into develop, closing. |
Forgot the last commit. |
Because the first pass creates
fakedir
, so for the second pass, it's no longer a non-existing folder.The text was updated successfully, but these errors were encountered: