You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running elm-test with the console reporter with a failing test that uses Expect.equal on two large data-structure hangs.
I tested with this quickly (filled the list to be about 400 elements each):
module SSCCE exposing (suite)
import Expect
import Test exposing (..)
testLarge : Test
testLarge =
test "foo bar" <|
\() ->
Expect.equal
[ { foo = "foo", bar = "baz" }
, { foo = "foo", bar = "bar" }
⋮
]
[ { foo = "foo", bar = "bar" }
, { foo = "foo", bar = "bar" }
⋮
]
It appears to me that the issue is with the Diff just taking too long to run. If you use the junit or json reporter, the tests run quickly.
One solution would be to check the length of the string prior to running the diff in the formatter - similar to how it doesn't diff floats or empty strings.
The text was updated successfully, but these errors were encountered:
Running elm-test with the console reporter with a failing test that uses
Expect.equal
on two large data-structure hangs.I tested with this quickly (filled the list to be about 400 elements each):
It appears to me that the issue is with the
Diff
just taking too long to run. If you use the junit or json reporter, the tests run quickly.One solution would be to check the length of the string prior to running the diff in the formatter - similar to how it doesn't diff floats or empty strings.
The text was updated successfully, but these errors were encountered: