elm-explorations / test

Write unit and fuzz tests for Elm code.
https://package.elm-lang.org/packages/elm-explorations/test/latest
BSD 3-Clause "New" or "Revised" License
237 stars 39 forks source link

Test Cmd #62

Open j-maas opened 5 years ago

j-maas commented 5 years ago

As hinted at on Discourse, there was a plan to add Cmd testing to elm-test.

While there are ways to test effects right now, they involve a lot of boilerplate and indirection, and it seems most appropriate to be able to compare Cmds directly, when it comes to tests.

I opened this issue mainly to track the status of this idea. Is there a concrete plan for this?

ChristophP commented 5 years ago

I wonder how this would work out in practice, since commands can contain functions (i.e. msg constructors or tasks) and equality on functions is impossible to assert.