Line Coverage for TPTP Unittests [message #92497] |
Wed, 14 February 2007 07:34  |
Eclipse User |
|
|
|
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 07:12  |
Eclipse User |
|
|
|
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
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02594 seconds