On May 29, 2012, at 1:17 AM, Benny Malengier wrote:

Yes, we need a better testing system. I have also never known how to run them.
I see John writes: runtests.sh fails lots
but I don't have a runtests.sh file on my computer.

I would like a system where

import gramps

just runs all the tests, or for the gramps pacakge:

gramps --test

Doing test should then run all scripts in the testsuite (like http://docs.python.org/library/unittest.html )


Sorry, that was a typo: it's test/runtest.sh. 

RunAllTests.py is a unittest test runner, so it would be pretty easy to run that from gramps.py. 

John Ralls