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

Test failing on Url.Parser, Url.Builder - elm 0.18 #58

Open
pjfitzgibbons opened this issue Oct 30, 2018 · 5 comments
Open

Test failing on Url.Parser, Url.Builder - elm 0.18 #58

pjfitzgibbons opened this issue Oct 30, 2018 · 5 comments

Comments

@pjfitzgibbons
Copy link

Hello,
Is the current master branch dependent upon elm .19 ?
I'm receiving this on elm test :

Executing task: elm test <

I cannot find module 'Url.Parser'.

Module 'Article.Slug' is trying to import it.

Potential problems could be:

  • Misspelled the module name
  • Need to add a source directory or new dependency to elm-package.json
    Compilation failed while attempting to build /home/fitzpe/programming/elm/elm-spa-example/tests/RoutingTests.elm
    The terminal process terminated with exit code: 1

Thoughts anyone?

Thanks,
Peter Fitzgibbons

@SidneyNemzer
Copy link

Yep, the master branch is on 0.19, it won't compile with 0.18

@pjfitzgibbons
Copy link
Author

I'm still having trouble with test. I now installed [email protected] and [email protected]
I'm receiving

I cannot find module 'Article'.

Module 'RoutingTests' is trying to import it.

Potential problems could be:

  • Misspelled the module name
  • Need to add a source directory or new dependency to elm-package.json
    Compilation failed while attempting to build /programming/elm/elm-spa-example/tests/RoutingTests.elm

More thoughts?

Thanks for your help!

@SidneyNemzer

@SidneyNemzer
Copy link

That error message mentions elm-package.json which indicates you're still running the 0.18 compiler (0.19 uses elm.json).

Check elm make --version, it should say something like 0.19

You might also ask on the Elm Slack (http://elmlang.herokuapp.com/), you'll get more people able to help!

@pjfitzgibbons
Copy link
Author

Progress. I reinstalled [email protected] and [email protected].
Now elm-test compiles/runs, all-fail though, like this :

↓ RoutingTests
↓ Route.fromUrl
✗ Parsing hash: ""

    Just Home
    ╷
    │ Expect.equal
    ╵
    Just Root


↓ RoutingTests
↓ Route.fromUrl
✗ Parsing hash: "#login"

    Nothing
    ╷
    │ Expect.equal
    ╵
    Just Login

Thoughts?
@SidneyNemzer

@SidneyNemzer
Copy link

Looks like those are failing tests. I'm not sure if @rtfeldman updated them completely when he rewrote the app a little while ago. For example one of the tests wants Root to get parsed but the Route module won't return the Root route for any URL.

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

No branches or pull requests

2 participants