-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
support tests/ with elm 0.19.0 #2176
Conversation
d9f2d1e
to
e66807d
Compare
Okay, I see that the CI tests do run on windows, and will have a look at fixing them. |
Easiest way is ctrl-f and look for (X):
|
@RyanSquared thanks. Finding the failed test (mine) wasn’t a problem. What I don’t understand is why the results of the CI would differ from the results I get when I run the docker container locally, since on the face of it, the environments should be the same. If I find more time for this, I will dig deeper. In the meantime, it works for me, at least. |
ah. I see. |
4f65873
to
289e006
Compare
most projects will have an elm.json file (>= 0.19) or elm-package.json (< 0.19)
With earlier elm versions, a separate package file is maintained for tests, which when properly configured enabled the compiler to find what it needed to compile the tests. Under elm 0.19, test dependencies are managed in the top-level package file, so `elm make` will fail on the tests. `elm-test make` is required in this case. See elm-explorations/test#64
windows paths have backslashes, which are special in regex patterns
69acac3
to
1f21eb0
Compare
Well, this PR is ready to go. It seems that the test failures are coming from master. |
Yeah, I'll fix those. I'm not surprised if Windows tests can fail. |
Cheers! 🍻 |
thanks! |
With earlier elm versions, a separate package file is maintained for tests, which when properly configured enabled the compiler to find what it needed to compile the tests. Under elm 0.19, test dependencies are managed in the top-level package file, so
elm make
will fail on the tests.elm-test make
is required in this case.See elm-explorations/test#64
I am unable to test on windows currently, but it works for me in the wild, and I have added tests for the new behavior.
Also I updated the tests to test behavior when elm package file is present (which is pretty much always).