[bt-devel] refactoring::namespace
Martin Gruner
mg.pub at gmx.net
Thu Jul 8 02:18:32 MST 2010
So I guess you don't like the concept of "test driven development"?
mg
Am 08.07.10 09:34, schrieb Jaak Ristioja:
> 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
_______________________________________________
bt-devel mailing list
bt-devel at crosswire.org
http://www.crosswire.org/mailman/listinfo/bt-devel
More information about the bt-devel
mailing list