[Qt-interest] QTestLib: -xml output format does not work for me
Jaco Naude
naude.jaco at gmail.com
Mon Apr 4 09:17:29 CEST 2011
Thanks Rohan
Passing the arguments to qExec() solved it.
Funny enough, it only works from command line, in Creator the parameters
"-xml > results.xml" results in the following argc and argv in my app:
Launching tester with 4 arguments:
0 : D
1 : -
2 : >
3 : r
I'm probably not using it correctly or something but for now running from
the command line is fine.
Cheers,
Jaco
On Sun, Apr 3, 2011 at 11:42 PM, Rohan McGovern <rohan.mcgovern at nokia.com>wrote:
> Jaco Naude said:
> > Hi
> >
> > 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/
> >
> > However no matter what I do, my output stays in plain text.
> >
> > I run the app from Qt Creator and put -xml > results.xml as the arguments
> in the run settings. The results.xml file is created but the output is in
> plain text.
> >
> > Any ideas or things that I might be missing?
>
> Hello,
>
> You might be failing to pass the program's arguments into testlib
> correctly.
>
> If you used QTEST_MAIN, this shouldn't be a problem.
>
> If you used QTest::qExec, then double-check that you've passed argc/argv
> into it correctly.
> --
> Rohan McGovern
> Quality Engineer
> Qt Development Frameworks, Nokia
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110404/aa83d832/attachment.html
More information about the Qt-interest-old
mailing list