Alan Stearns
unread,Jun 7, 2010, 7:40:30 PM6/7/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Flexcover Discussion Group
If I have a private class in an .as file (a class defined outside the
package) the .cvm and .cvr files say that it's part of the
"ASFileName.as$<linenumber>" package. This causes problems downstream
in my reports. I use the flexcover-to-cobertura transform which passes
those package names along, and the Hudson plugin displays them along
with the normal packages. The problem crops up when the report gets
confused about displaying the source files - it either chooses the
normal package or the munged package version. So I either see the line
markers for the private classes or the main class, but not both.
If I change the munged package name to the correct name for the
package that contains the main class, then the report works. Is there
a reason flexCover can't use the actual package name in the first
place? I see that if I change the name in the .cvm file the private
class is not tracked, so I'm considering just replacing the munged
package names in the .cvr file before my script passes things along to
cobertura.
Here's an example source file. FlexCover will correctly track coverage
for both classes, but the report will only show the line markers for
internalClass.
package testPackage
{
import flash.display.Sprite;
public class flexCoverTest extends Sprite
{
public function flexCoverTest()
{
super();
2+2;
new internalClass();
}
}
}
class internalClass
{
public function internalClass()
{
2*2;
}
}