GTG

Code review comment for lp:~jml/gtg/test-framework

Revision history for this message
Jonathan Lange (jml) wrote :

This branch puts a traditional Python unit testing framework in place.

It moves the top-level 'tests' into a package called GTG.tests. This is partly so that tests can import from each other, partly convention and partly so tools like trial and nosetests can be used to run the tests.

While I was looking at backends.py, I fixed up all of the PEP 8 violations and tidied up some of the docstrings. backends.py is now called test_backends.py, again to help discovery of tests.

Once this is done, the unit.sh script is no longer needed, so that's removed.

The branch also moves the debug.sh script out to 'scripts' and changes the debug directory to debug_data. It adds a bzrignore for debug_data too.

If you want to run tests now, you can use 'make check'. I've documented this and a bunch of other things in the new HACKING file.

This branch was branched from lp:~jml/gtg/better-lint-checking, so the diff you see on Launchpad is bigger than the actual changes in the branch. I'll reply to this post attaching the real diff.

Thanks,
jml

« Back to merge proposal