[Qt-interest] QTestLib: -xml output format does not work for me
Jaco Naude
naude.jaco at gmail.com
Mon Apr 4 12:35:21 CEST 2011
Hi Alex
No problem. I have to say I am no testing expert, but I've written a few
tests and got benchmarking to work as well. My project is open source and
you can find all the sources here http://gitorious.org/qtilities.
I've created a separate library called UnitTests (
http://gitorious.org/qtilities/qtilities/trees/master/src/UnitTests) which
hosts all my tests. For each class I want to test, I wrote a TestClassName
class which contains all the tests for ClassName. Alongside this I've create
more generate tests which tests multiple classes, for example TestExporting
which tests importing and exporting on lots of different classes.
To do the actual test, I've created a tester application which basically
just run a bunch of tests. This is very basic and can easily be made much
nicer. For example it can provide a GUI to allow selection of the tests to
be done etc. See
http://gitorious.org/qtilities/qtilities/trees/master/src/Tools/QtilitiesTester
.
I hope this helps.
Cheers
Jaco
On Mon, Apr 4, 2011 at 9:50 AM, Alex Strickland <sscc at mweb.co.za> wrote:
> On 01/04/2011 14:17, Jaco Naude wrote:
>
> > I'm trying to get my output from my unit testing app to be in XML in
> > order to generate benchmarking reports as described here:
> >
> http://labs.qt.nokia.com/2008/12/05/qtestlib-now-with-nice-graphs-pointing-upwards/
>
> Hi Jaco
>
> I am toying with building a project and using TDD. So I thought I'd
> write my first test and see how it went. Immediately I had to start
> thinking about how to name the project, how to name the test, whether
> all tests for the project should be in one file, whether the test
> project directory should be in the same directory as the project being
> tested etc. I've read the Qt docs, but the examples are really for a "toy".
>
> If it is not confidential would you mind posting your .pro file for your
> test project and your "tested" project, or perhaps if you know of a
> public example pointing me to it?
>
> Thanks
> --
> Alex
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110404/92b011cb/attachment.html
More information about the Qt-interest-old
mailing list