krisajenkins / elm-export

Create Elm types and JSON decoders from Haskell source.
Eclipse Public License 1.0
116 stars 47 forks source link

Show diffs when tests fail. #25

Closed mattjbray closed 7 years ago

mattjbray commented 7 years ago

Makes test failures easier to grok. Example:

Failures:

  test/ExportSpec.hs:361:
  1) Export, Convert to Elm decoders., toElmDecoderSource Comment
       < generated
       > test/CommentDecoder.elm
       14c14
       <         |> required "whoops, a typo" string
       ---
       >         |> required "text" string
krisajenkins commented 7 years ago

Very nice change! Thanks Matt. :-D