-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Fix issue with expecting default ignore file when checking file size #545
Conversation
…and adds case to check custom ignore file size
@lnenad the tests do all pass for me locally. Can you paste a failure message? Yes I'd prefer to have tests and I think it should be possible following our project fixture patterns. |
@jeremyjh here is the output OS: Windows
Ran like this: git clone repo, mix deps.get, mix test
Again, I am not proficient in Elixir so please tell me if the reporting of 5 failures is expected. |
@lnenad The issue with some of those is the line terminators are different on windows; its true the test suite isn't compatible with windows. I'm not sure what the story is with format vs format_warning though; if that is a platform difference it is a surprising one. Any chance you can test in WSL or a VM with Linux? |
@lnenad I think actually that those issues shouldn't prevent you from making a new test. If you can make a new test that passes for you in windows and fails with the old code, I can handle any issues with Linux compatibility/CI. |
@jeremyjh Added tests, please take a look, they caused the CI to fail but they work for me locally. It's weird. |
@jeremyjh we had a similar problem because we did not have the default file |
@@ -0,0 +1,15 @@ | |||
defmodule Ignore.Mixfile do |
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.
Not sure, but there might be an issue with using the same module name Ignore.Mixfile
. Maybe you can try changing one of these names, and see if that fixes some of these warnings.
I was linked to this PR after posting mine here #549 It looks like a similar approach, but I'm not sure how to fix the failures in this one. |
This PR fixes issue with expecting default ignore file when checking file size and adds case to check custom ignore file size. The issue was made by my previous PR #543 due to the fact it was always trying to
File.stat!
the default ignore file.I've manually tested the following 5 combinations:
They all work but please @jeremyjh take a look. I'd also be happy to write tests for this but for some reason tests are failing even if I go back in history before my previous PR, can you please take a look if it is failing for you? Maybe it's something with my setup.