lundi 22 janvier 2018

Load external data into Elm test suite

I am writing an Elm test suite and want to check a function's output using a list of known good input/output pairs, stored in an external file. I can choose the format of the external file, so I could use JSON for example, but I need to keep it separate because it is accessed from other languages. (I am basically ensuring that the Elm version of the function matches other versions).

I do not want to hard-code the values into the Elm test module. Is there a way to do this with Elm and elm-test?

Aucun commentaire:

Enregistrer un commentaire