Re: [Inkscape-devel] GSoC Idea: Inkscape API reg. tests
On 3/29/09, Jasper van de Gronde <th.v.d.gronde@...528...> wrote:
That's a very interesting idea, and underscores the importance of a generalized API, you never know what people are going to use it for.
Here a quick proof of concept I wrote to try it out:
Using my old API I wrote a script that made various shapes and did some selections moved things around etc. Then I ran it twice and saved the file each time (as svg) and ran a diff.
No difference but the filename, just as I had hoped.
Worried that lots of floating point math would be it's downfall, I used the same technique with scripts that generate these images:
http://www.cs.grinnell.edu/~bergsore/dimond-fractal.jpg http://www.cs.grinnell.edu/~bergsore/morph.jpg
(They are jpegs here but you can imagine how messy the paths are.) It worked perfectly.
Obviously this won't catch errors in the way Inkscape displays things, like bitmap comparisons, but if automated it would be very quick.
A fast and easy alternative regression test could definitely be one of my deliverables.
What do you guys think? Soren Berg
participants (1)
-
Glimmer Labs