Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


I 2nd unit testing. I use it a lot when doing programming in Java. I agree its a great way to test out ones logic before working with the code.

Michael I think in this regard though things will be harder as a lot of code has already been implemented. If one isn't familiar with the already implemented code its going to be quite hard to test certain aspects as you have mentioned below.

On 01/17/2011 01:23 PM, Michael Meeks wrote:
On Mon, 2011-01-17 at 11:51 +0000, Caolán McNamara wrote:
On another note, is there an automated test suite?  If so, I'd love to
know how to kick it off after I make changes.
        :-)

a) we have some build-time cppunit tests that run always during the
build, e.g. building sc will automatically build and run the sc unit
test which is an expanding work in progress.
        And - indeed, we would love to convert more people to the cult of unit
testing - Kohei started, and appears to have become quite addicted. The
code for calc is in sc/qa/unit/ - and it would be wonderful to have some
love there: there is a lot to test (as you can see).

        Personally, I would love to see some nice unit tests for eg. for calc's
number formatting logic: to check corner cases of what we display for
various numbers. Similarly things like undo/redo could use a
comprehensive thrashing - with some kind of random torture test on a
document: performing tens of random insert / delete / overwrite /
remove / add rows etc. - and then undoing it all, and verifying that we
did indeed end up back where we started - might be nice :-)

        A great way to learn the code, and (I hope) quite fun, and will protect
us from problems for many years.

        Thanks !

                Michael.



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.