Skip to content

0.19.2-0

Choose a tag to compare

@lydell lydell released this 06 Jul 18:06
· 42 commits to master since this release
9c7d5ba

Breaking

elm-test now requires Elm 0.19.2!

Note that if you install Elm 0.19.2, but forget to update elm-test, you’ll get an error like this:

-- ELM VERSION MISMATCH ----------------------------------------------- elm.json

Your elm.json says this application needs a different version of Elm.

It requires 0.19.1, but you are using 0.19.2 right now.


`elm make` failed with exit code 1.

That error message is slightly confusing because it’s talking about a generated elm.json file deep in the elm-stuff/ directory, not your own elm.json! But either way, the solution is to use the same version of elm and elm-test. See Versions for details.

Thanks to Harm for helping with this!

Performance

  • elm-test no longer depends on the chalk package. Jeroen Engels noticed that all we used that package for was to color text blue and red, and made a PR simplifying that to just two functions (and a helper), instead of a whole package – with sub-dependencies. This removed 6 npm packages in total, and about 0.2 MB, from an elm-test install!

  • elm-test now starts up to ~40 ms faster in some cases, due to lazy loading of two npm packages. When not using the watch mode, or when not using the junit report, we now avoid loading a bunch of file watching and XML generating code. Thanks to Jeroen Engels for doing deep analysis on this!

  • When Expect.equal fails on two large, dissimilar strings, the reporter's character-level diff takes several seconds – just to realize that a diff cannot be displayed. Matthieu Pizenberg fixed this in elm-test-rs, which originally copied the code in question from this repo. The fix has now been copied back, so diffs stay sub-second, even for really large cases!