elm-vega icon indicating copy to clipboard operation
elm-vega copied to clipboard

Provide stricter tests

Open jwoLondon opened this issue 7 years ago • 2 comments

Currently 'tests' consist of working examples that are verified by visual inspection.

A useful addition would be tests that confirm that the json spec produced by a spec-generating function is what is expected. This would also allow documentation examples to be tested through elm-verify-examples.

We might also consider validating against Vega-Lite and Vega schemas, although there are still some cases where working VL/V examples can invalidate schemas.

jwoLondon avatar Feb 09 '18 09:02 jwoLondon

Perhaps, using elm-test could be a solution – the package looks rather straightforward to get started with. I have some experience with setting up Travis CI for the github repos, so can help a bit here.

kachkaev avatar Feb 09 '18 11:02 kachkaev

elm-css uses elm-test and might be a good source of inspiration.

kachkaev avatar Feb 09 '18 11:02 kachkaev