Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Line Coverage for TPTP Unittests
Line Coverage for TPTP Unittests [message #92497] Wed, 14 February 2007 12:34 Go to next message
Eclipse UserFriend
Originally posted by: jekutsch.inf.fu-berlin.de

Hi all,

I wrote a simple TPTP JUnit Test (.testsuite with HyadesTestCase extending
Java class). Running the Java File as an "ordinary" JUnit Test with enabled
Line Coverage (from the Package View) perfectly results in a Coverage Report
(really easy fast!). Running the .testsuite using a TPTP Test run
configuration with Line Coverage enabled doesn't result in a report, though.

I couldn't find any information on it in the documentation nor bugzilla.
Although I'm using Sun's 1.5 JDK (bugzilla reports some problems here), the
problems only occur with TPTP tests. No error occured in the Error log. I
resolved a problem using the "-noverify" flag in the JUnit-based run. On
TPTP-based runs, there doesn't seem to be a possibility to offer this JVM
option.

Environment: TPTP 4.3 (with Coverage Core plugin 4.2.0), Eclipse 3.2.1,
Windows XP, Sun JDK 1.5.0_07-b03

Sebastian
Re: Line Coverage for TPTP Unittests [message #96067 is a reply to message #92497] Tue, 17 April 2007 11:12 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Sebastian,
The Line Level Code Coverage tool provided as a Technology Preview can
is not integrated with Test launch configurations (e.g. only be used for
Java applications, such as JUnit test classes). TPTP does provide a method
level code coverage tool, but it is currently restricted to Java
applications as well(https://bugs.eclipse.org/bugs/show_bug.cgi?id=138736).
Although this defect has fixed the usability issue with allowing users to
launch tests using a Profile launch configuration, there is still an
outstanding enhancement
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=75029) to enable executing
tests in profiling mode. That said, there is a work-around cited in the
defect (https://bugs.eclipse.org/bugs/show_bug.cgi?id=138736#c17).

Moving forward, TPTP is considering integrating EMMA
(http://emma.sourceforge.net/) for line level code coverage
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=170800).

Paul
"Sebastian Jekutsch" <jekutsch@inf.fu-berlin.de> wrote in message
news:equvle$222$1@utils.eclipse.org...
> Hi all,
>
> I wrote a simple TPTP JUnit Test (.testsuite with HyadesTestCase extending
> Java class). Running the Java File as an "ordinary" JUnit Test with
> enabled Line Coverage (from the Package View) perfectly results in a
> Coverage Report (really easy fast!). Running the .testsuite using a TPTP
> Test run configuration with Line Coverage enabled doesn't result in a
> report, though.
>
> I couldn't find any information on it in the documentation nor bugzilla.
> Although I'm using Sun's 1.5 JDK (bugzilla reports some problems here),
> the problems only occur with TPTP tests. No error occured in the Error
> log. I resolved a problem using the "-noverify" flag in the JUnit-based
> run. On TPTP-based runs, there doesn't seem to be a possibility to offer
> this JVM option.
>
> Environment: TPTP 4.3 (with Coverage Core plugin 4.2.0), Eclipse 3.2.1,
> Windows XP, Sun JDK 1.5.0_07-b03
>
> Sebastian
>
>
>
Previous Topic:Generating an executable test
Next Topic:Unit testing eclipse plugins
Goto Forum:
  


Current Time: Tue Apr 23 13:48:50 GMT 2024

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

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

Back to the top