How to test code that includes ports?

Hello all!

I am writing an Elm application, and I’d like to introduce some tests (written in Elm), to the codebase.

  • What libraries exist for this?
  • Are there options to use property-based testing in Elm?
  • Some parts of the library require ports having been set up from the JavaScript-side, and interacting with them. How to test these?

This is the main library for testing:

It includes property based testing, which it calls “fuzz testing”.
I haven’t got any suggestions for testing ports, maybe someone else will have some ideas.

Edit: updated link to 0.19 version

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.