Mailing list - Entries of 2005


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [qftestJUI] Code Coverage


  • Subject: Re: [qftestJUI] Code Coverage
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Mon, 31 Oct 2005 07:42:01 -0000

Hi Michael,

there are a few success stories in the list archive, e.g. from Scott:

http://www.qfs.de/archive/qftest-list/2004/msg00777.html
http://www.qfs.de/archive/qftest-list/2004/msg00822.html

The easiest way to integrate these with qftestJUI is to set up a
script that will run your SUT with the instrumented classes (if
instrumentation is required) and store the coverage reports in the
desired place.

Then use a "Start SUT client" node from qftest to run that script and
you should be fine. This avoids having to build the right command line
in the "Start Java SUT client" node which people sometimes are having
difficulties with.

Best regards,
    Greg

"Glicksman, Michael" <Michael_Glicksman@?.com> writes:

> Has anyone ever gotten code coverage reports using jui tests?  Using any
> code coverage tools?
>
> I have also modified my Maven scripts to use the
> de.qfs.apps.qftest.start.TestRunner class instead and launch it via a
> ant:java task, but it looks like this class does not accept the -J option,
> which I need to use with Cobertura.
>
> thx
>
> -----Original Message-----
> From: Gregor Schmid [mailto:Gregor.Schmid@?.de]
> Sent: Wednesday, October 26, 2005 9:19 AM
> To: qftestJUI-list@?.de
> Cc: Glicksman, Michael
> Subject: Re: [qftestJUI] Code Coverage
>
>
> Hi Michael,
>
> I can't help you directly with your problem because I don't have any
> experience with either maven or Cobertura, but from your description it
> sounds as if the problem is in your build script and not related to
> qftestJUI.
>
> If Cobertura needs requires code instrumentation, another possibility is
> that the SUT started from qftestJUI uses the non-instrumented classes
> instead of the instrumented ones. Try to add -dbg to the command line for
> qftestJUI, then look at the program output for the SUT in the qftestJUI
> run-log under the "Start SUT client" node.
> That may give you some hints.
>
> Best regards,
>     Greg
>
> "Glicksman, Michael" <Michael_Glicksman@?.com> writes:
>
> >    Hello,
> >
> >    I am trying to figure out how I can get code coverage reports using
> >    Cobertura.  We have a script we launch using Maven that runs the
> >    jui-tests and then create a Cobertura report from the results, but
> >    nothing but a N/A shows up in the result.  It appears as the Cobertura
> >    serialized file gets re-created for every run, which wipes out the
> >    original instrumented code.
> >
> >
> >
> >    I have seen on some posts that others have been using emma, and sounds
> >    like they figured out how to get this to work.  But there are no
> >    details as to how they got this to work.  Any details, settings,
> >    properties, etc... would help out a lot.
>
> --
> Gregor Schmid                                Gregor.Schmid@?.de
> Quality First Software GmbH                     http://www.qfs.de
> Tulpenstr. 41                                Tel: +49 8171 919870
> DE-82538 Geretsried                          Fax: +49 8171 919876
>

--
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876


Videos Downloads Documentation Buy Free Trial