Adding xml output to QTest unit tests, in order to produce a more readable report.
Allen Winter
winter at kde.org
Wed Sep 12 15:37:16 CEST 2007
On Tuesday 04 September 2007 11:01:47 am Andreas Pakulat wrote:
> On 31.08.07 23:04:57, Andreas Pakulat wrote:
> > On 31.08.07 12:51:46, Allen Winter wrote:
> > > On Friday 31 August 2007 11:51:55 am Andreas Pakulat wrote:
> > > > On 31.08.07 17:34:02, Thibault wrote:
> > > > > No, this patch produce the xml output variant of QTestLib. The log is
> > > > > save in a file named <testname>.tml.
> > > >
> > > > I strongly object this patch as it is now.
> > >
> > > Yes, I'll revert.
> > > Sorry.
> >
> > Well, I'm sorry too because it means the EBN needs again a bit longer
> > until it runs automated tests and post the results on kde4, which I find
> > very important and helpful.
> >
> > I modified the patch to use a variable KDE4_TEST_OUTPUT (currently
> > recognizes "xml" in any case) to activate the xml output, else it'll use
> > plain text. Also added an existence-check for source files, I had a case
> > where a source file for a test obviously is generated and thus cmake
> > would generate an error trying to read it..
>
> Ping? Found a small error in the patch, so I'm sending an updated one.
> Shall I commit or is the idea of having xml-output from the QTests
> dropped completely?
>
FYI, I just committed Andreas' updated patch.
Nothing changes to the test output file format unless you
run cmake with the option -DKDE4_TEST_OUTPUT=xml.
In which case you'll see that foo.tml files are created.
I should probably go document this on TechBase now.
-Allen
More information about the Kde-buildsystem
mailing list