lvgl / lv_img_conv

Image converter for LVGL, written in JS
https://lvgl.github.io/lv_img_conv/
Other
89 stars 42 forks source link

Add unit tests #3

Closed embeddedt closed 2 years ago

embeddedt commented 3 years ago

Before any code cleanup/refactoring takes place, some type of unit testing should be added to ensure all types of images always convert and are displayed correctly.

As the image format has not changed in years, and major changes are unlikely, checking that the C file output matches an expected one should be good enough for testing purposes, and avoids the need to depend on the lvgl/lvgl repository.

embeddedt commented 2 years ago

Snapshot-based tests were added recently to prevent regressions in the converter output.