Hello
I'm doing lots of updating from 0.16 to 0.17 and since Graphics.Element was
moved out of core, I figured it was time to ditch ElementRunner and do some
nice command line testing. This is great because I have a ton of files with
tests in them and would like to just run them all on the command line.
I noticed that we now have elm-community/elm-test instead of
deadfoxygrandpa/elm-test.
I went straight to the command line example here:
https://github.com/elm-community/elm-test#testing-from-the-command-line
This example looked great so I made a file with it and did exactly what it
told me to do but I got errors:
$ *cat Tests.elm*
module Tests exposing (..)
import ElmTest exposing (..)
tests : Test
tests =
suite "A Test Suite"
[ test "Addition" (assertEqual (3 + 17) 10)
, test "String.left" (assertEqual "a" (String.left 1 "abcdefg"))
, test "This test should fail" (assert False)
]
main : Program Never
main =
runSuite tests
$ *elm-make Tests.elm --output tests.js*
Success! Compiled 10 modules.
elm-make:
elm-stuff/build-artifacts/0.17.0/elm-community/elm-test/1.1.0/ElmTest-Runner-Console.elmo:
openFile: does not exist (No such file or directory)
$ *node tests.js*
tests.js:3552
});
^
SyntaxError: Unexpected end of input
at Object.exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:513:28)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Function.Module.runMain (module.js:575:10)
at startup (node.js:160:18)
at node.js:449:3
Errors! So I don't have an ElmTest-Runner-Console.elmo and the generated
JavaScript is broken.
Has anyone else noticed this? If so, great. If not, I guess I would have to
figure out what is going on and do the fix and make the pull request, but
am on a bit of a tight schedule and was hoping perhaps this was a known
issue with a workaround, OR I'm just all messed up with my Elm
configuration.
I am using node 6.2.0, Elm 0.17.0 installed from Homebrew and my
elm-package.json contains:
"exposed-modules": [],
"dependencies": {
"elm-community/elm-test": "1.1.0 <= v < 2.0.0",
"elm-lang/core": "4.0.0 <= v < 5.0.0",
"elm-lang/html": "1.0.0 <= v < 2.0.0",
"evancz/elm-http": "3.0.1 <= v < 4.0.0",
"evancz/elm-markdown": "3.0.0 <= v < 4.0.0"
},
"elm-version": "0.17.0 <= v < 0.18.0"
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.