rytheranderson / pyfracgen

Fractal images with Python
MIT License
21 stars 1 forks source link

Mandelbrot tests #8

Closed rytheranderson closed 9 months ago

rytheranderson commented 9 months ago

Add tests for the Mandelbrot module. While I'm at it, add nopython=True for all @jit decorators, which prevents an annoying deprecation warning. Since these are the first tests added I also configured tox, pytest, and coverage.py.

Coverage of the module is 100% when disabling numba.jit (NUMBA_DISABLE_JIT=1). However, coverage.py does not account for numba decorators, see this issue: https://github.com/nedbat/coveragepy/issues/849. I should find a workaround for this in a subsequent PR. Ideally, I would be able to disable JIT just for certain unit tests, and assume the test results are the same with and without. Disabling JIT for all tests is OK, but slows down integration tests massively.