jezs00 / pycasso

A system to send AI generated art to an E-Paper display through a Raspberry PI unit
MIT License
76 stars 6 forks source link

Test Pycasso #36

Closed jezs00 closed 1 year ago

jezs00 commented 1 year ago

Recent issues have shown that current tests are not giving us enough resiliency to see if our updates are breaking features.

While due to the current design of pycasso it's not possible to completely single out certain functions, and failures of components like omni-epd might create large failures of many tests, it's better to have more tests to fail than less.

We should have unit tests run on pycasso start to finish with different configurations or different possible errors. We can likely utilise test mode to generate prompts without pinging providers. omni-epd mock mode should help in generating images we can check in the tests.

Testing providers themselves will likely not be possible.

jezs00 commented 1 year ago

Test every single config load item

jezs00 commented 1 year ago

I think we're testing as good as a project like this deserves.