semagnum / light-painter

Blender add-on that creates lights based on where the user paints.
https://semagnum.github.io/light-painter/
GNU General Public License v3.0
310 stars 6 forks source link

Setup unit tests #14

Closed semagnum closed 1 year ago

semagnum commented 1 year ago

Needed unit tests:

semagnum commented 1 year ago

Windows access errors on Blender 3.4 makes pytest at best unwieldy. Strangely nView's local testing still works fine. Probably an environment issue, but not entirely sure. Will look into later after release.

semagnum commented 1 year ago

Trying to run tests without Blender running in the background isn't really feasible, as bpy is being used directly in most modules. I think I'll just mark this as a won't fix for now. Hopefully look into it later.

semagnum commented 1 year ago

Found and tested a new way of doing unit tests that's cleaner without blender-addon-tester. Will figure out some deterministic unit tests for the tools.

semagnum commented 1 year ago

Sky texture and sun orientation deemed a little complicated for unit tests, will add it at a future time. These starting tests will be sufficient.

Closing. No release made since this is mainly for devs.