Reading the thread about beta 2 I had
the idea that we should start implementing
unit tests.


Here are some arguments:

* Currently it is only possible to test if a
change has broken something, by using the
final application. But this is not enough,
because there are so many cases which must
be tested so that for sure one would be
forgotten.


* By adding unit tests all test cases could
be done by the developer, not by the user.


* A unit test simplifies the reproduction of bugs.
And, also very important, this reproduction
is then part of the test, so it could not
happen again.


* Writing unit tests helps understanding
the code.


* It is also a way to document the code.
LyX's code is at some places so complex that
it is a problem. Nobody (?) understands
it, or it is so hard to understand that
it is impossible to start a bugfix.


* Tests are a must in high quality projects.

* Knowing Unit tests is good for your CV.



Any comments? Or ideas for a unit test framework?

- Qt, http://doc.trolltech.com/4.2/qtestlib-manual.html
- CppUnit, http://cppunit.sourceforge.net/cgi-bin/moin.cgi


Peter


Reply via email to