Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Code Coverage in Team Concert for Mac

Hi,
I'm working in a Software Engineering class and we are using Team Concert this semester. We want the students to use the code coverage tool and we have successfully gotten it to run on Windows. However, we are having issues when we run it on a mac. We are able to check the box to enable static code instrumentation, but whenever we run a unit test (or anything else) while the code coverage is enabled, we get errors similar to

Failed to invoke suite(): java.lang.ClassFormatError: LVTT entry for 'queries' in class file edu/ncsu/csc/itrust/DBBuilder does not match any LVT entry.

Any help would be appreciated!

0 votes



2 answers

Permanent link
I'm surprised you got this to work on Windows because we frequently
experienced the problem there. Were you compiling the exact same classes on
both platforms? The issue is tracked in workitem 33604. From my
investigation it's related to the use of Java 5.0 generics specifically it
appeared more to be an issue of assignment of generics to a local variable
then having or using generics in general which was initially believed to be
the cause. I was finally able to narrow the problem down in a simple test
case that you can see in comment 13 of that defect. Our component team was
heavy users of the Jazz based code coverage tools until we ran into this
problem about a year ago now. The issue never made the priority list for
the 1.0 release so I found an alternative for our team to use at
www.eclipse.org. We started to use ECLEmma at the beginning of this year
and have been using it since. It's free and installable from an update
site. It has a nice integration with Eclipse. It also supports providing
coverage data for our server side code running in Jetty inside the IDE which
our coverage tooling has never done and we desperately wanted. It doesn't
have the nice integration into an automated continuous build however like
the Jazz offering does. Strangely...in that context the Jazz solution
doesn't have the LVTT problem.

Don Weinand
Jazz Team Build


"ljhaywar" <ljhaywar> wrote in message
news:g8n9ra$eh4$1@localhost.localdomain...
Hi,
I'm working in a Software Engineering class and we are using Team
Concert this semester. We want the students to use the code coverage
tool and we have successfully gotten it to run on Windows. However,
we are having issues when we run it on a mac. We are able to check
the box to enable static code instrumentation, but whenever we run a
unit test (or anything else) while the code coverage is enabled, we
get errors similar to

Failed to invoke suite(): java.lang.ClassFormatError: LVTT entry for
'queries' in class file edu/ncsu/csc/itrust/DBBuilder does not match
any LVT entry.

Any help would be appreciated!

0 votes


Permanent link
Thanks! I think we're going to go with eclEmma. It's a very strange bug since we were using the exact same code base. After playing with it for a while, we determined the issue was with generics...I was able to get the Code Coverage tool to work with a simpler code base on my mac.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 22 '08, 5:06 p.m.

Question was seen: 5,907 times

Last updated: Aug 22 '08, 5:06 p.m.

Confirmation Cancel Confirm