[Bf-python] Proposal for Blender Python test suite

Willian Padovani Germano wgermano at ig.com.br
Sat Aug 7 20:35:05 CEST 2004


Hi Chris,

Sorry for taking long, I read it (and had already tried your test setup),
but postponed answering till 2.34 was out (and I had some rest :) ).

----- Original Message -----
From: <ChrisKeith at aol.com>
To: <bf-python at blender.org>
Sent: Sunday, August 01, 2004 7:41 PM
Subject: [Bf-python] Proposal for Blender Python test suite

> Here's my first  pass:
>
> http://home.pacbell.net/c_keith/projects/blender/scripts/proposal.html

For bpython I guess it's enough to have a single group of tests, one .py for
each module as a start, then maybe more for different tests that may be
necessary.  About rounding floats, it's trivial but we should try to get the
precision defined in a single module file, so we just have to change one
place to try with a different value.

The first step is working on the tests themselves, using 'exec' where
possible to avoid writing too much.  An old test I wrote checked for min and
max limits of each set method, guess that's a good thing to do.  The output
should be clear but not verbose to simplify things.

With an extra script in the dir we can automate the loading (and packing of
all test files inside a .blend), by using Blender.Text.Load() commands to
load all tests at once.  The script can link all the tests as scene Redraw
scriptlinks for example, then redraw to run the tests (that will write the
output files) and leave Blender.

I'll post a simple test next week, others who want might do it too, then we
can develop from there.

--
Willian, wgermano at ig.com.br




More information about the Bf-python mailing list