[bt-devel] refactoring::namespace

Jaak Ristioja Ristioja at gmail.com
Thu Jul 8 00:34:24 MST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08.07.2010 09:54, Martin Gruner wrote:
> I'd be more than grateful if you could also investigate on how we could
> implement a BibleTime::Test (unit tests for the backend at least). I
> tried at one point, but didn't get really far. So far I only have tests
> for the CBTConfig, which are really trivial, but better than nothing.

See http://doc.trolltech.com/qttest.html and QTest class.

For good examples (including GUI tests), see the source code of the Arora browser at
http://code.google.com/p/arora/wiki/source and look into the autotests/ folder for
automatic tests (and manualtests/ folder for simple programs used for manual testing).

> We need good unit testing support to be sure that refactoring efforts
> don't break things. Unfortunately I don't know how to do that in C++
> efficiently. The lack of this is a major problem in BT's codebase quality.
> 
> What do you think?

I think we're nowhere near writing tests, except perhaps for a few classes. Personally I
wouldn't want to try it right now and end up rewriting all the tests later. I think we
should at this point concentrate on refactoring/documentation rather than tests.

Blessings!
Jaak
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)

iQgcBAEBAgAGBQJMNX96AAoJEFqwhAoGc/hvAO9AAKscvgXpUVvnstQH7c2qZ9S6
iRM4AImLgLkz70QVbWzfjDj1TOG7z1I9S17B5kA4N83JEDAbdsotw+5dGpY5rMVO
BvQLltprZD7lyt8wJwGUd12Lx+YSa1xuVHHoiZhQU+Ds4MP+fWX0riHEFiCSSLG/
H8DUCNwo+leMunCZChapzyD8R4P3o7qf2d78sCNuubmWFS9qLfBwNpZ7e4LXjXWq
n1cxhWDwr23zDtiPl7z9ujSN0LVBL1re+jH4Uy2rVBxVHbffy97qtQ0vrOtk9Kz7
cUyS/O1/grGExS9b5p8kyI2aRkYZK+7uXQbqIaG1riHf0pC7XjmoHzJYB7FfvzcG
74ahCBJtS0A3ak/Uz7c542BcOIRtpU/rZ/nA+a70uKnYa6h1dksUtFI2XarqtNj9
Xdwx5MyjldcYNQpO0N8f3Z2e+MyUfxr8xUEP8axzQg95dtz2KS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EAW/8cVnvG7F9xJ0AGI
HGLr0oVZcAI39l9xNYHganlZdefWqQ3WRX0tkThlKQAs8OoV499wuwTGNjia++fx
6mnT89Uea9iZj91opmUda5Oe2b/uEeXoIwIGPH23DCLyBWc2MCm8QQpfi6CqfrVv
5pC9zWdFMiRgJgA4UU1U
=soTr
-----END PGP SIGNATURE-----



More information about the bt-devel mailing list