Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Code Coverage
Code Coverage [message #67208] Thu, 20 April 2006 17:32 Go to next message
Patrick Chuong is currently offline Patrick ChuongFriend
Messages: 11
Registered: July 2009
Junior Member
Hi,

I am using the Code Coverage tool that comes with TPTP. I am using Eclipse
3.1.2 and TPTP 4.1.0.1. I am seeing inconsistent result when running my
testes.

1) When collecting coverage data manually running eclipse, something the
all method within a class is collected, but sometime some of the methods
that aren’t call doesn’t show up in the report.

2) When collecting coverage data using JUnit (The JUnit test case aren’t
part of TPTP’s JUnit), the test method within the JUnit test case doesn’t
shows up in the report, and the methods that are call from the JUnit test
method doesn’t show up as well, where it shows up in the manual test run.

Is anyone else having these problems?

Regards,
Patrick
Re: Code Coverage [message #68638 is a reply to message #67208] Wed, 26 April 2006 12:38 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Patrick,
When profiling an application (JUnit tests or non-JUnit classes) for
code coverage, the methods and classes that appear in the Coverage
Statistics view are determines by the filter set of the Code Coverage
profiling set specified in the launch configuration. Can you confirm that
intended classes are not being filtered (see Help >> Help Contents >>
Monitoring and profiling applications >> Monitoring and profiling
applications >> Profiling an application >> Launching or attaching to a
process for profiling >> Specifying profiling criteria)? If not, this
appears to be a defect. Please open a TPTP bugzilla defect and include
screen captures of your Code Coverage profiling set as well as the desired
classes and actual classes that you intend to see in the Coverage Statistics
view.

Paul
"Patrick" <pchuong@ti.com> wrote in message
news:512f44db07ee294c268d759f421f32ec$1@www.eclipse.org...
> Hi,
>
> I am using the Code Coverage tool that comes with TPTP. I am using Eclipse
> 3.1.2 and TPTP 4.1.0.1. I am seeing inconsistent result when running my
> testes.
>
> 1) When collecting coverage data manually running eclipse, something the
> all method within a class is collected, but sometime some of the methods
> that aren
Re: Code Coverage [message #69269 is a reply to message #67208] Mon, 01 May 2006 19:55 Go to previous message
Eclipse UserFriend
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 006D6BCC85257161_=
Content-Type: text/plain; charset="US-ASCII"

Check your filters and make sure you're not accidentally filtering out the
information you need. To access your filter set, click on the profile
button, select 'Profile...' -> select your launch configuration -> select
the 'profiling' tab -> click on your profiling set -> edit -> next ->
select the profiling options you like -> next -> check your filterset here
and make sure you're not filter out the things you're interested in ->
finish -> profile.

Navid Mehregani
--=_alternative 006D6BCC85257161_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Check your filters and make sure you're
not accidentally filtering out the information you need. &nbsp;To access
your filter set, click on the profile button, select 'Profile...' -&gt;
select your launch configuration -&gt; select the 'profiling' tab -&gt;
click on your profiling set -&gt; edit -&gt; next -&gt; select the profiling
options you like -&gt; next -&gt; check your filterset here and make sure
you're not filter out the things you're interested in -&gt; finish -&gt;
profile.</font>
<br>
<br><font size=2 face="sans-serif">&nbsp;Navid Mehregani</font>
--=_alternative 006D6BCC85257161_=--
Previous Topic:TPTP framework question
Next Topic:Remote testing externally built code (native and java)
Goto Forum:
  


Current Time: Wed Jul 24 13:30:22 GMT 2024

Powered by FUDForum. Page generated in 0.03761 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top