Code coverage data not showing

Hello,

I'm running TeamCity 3.1.
I've successfully ran a complete Ipr build with tests and all, and activated code coverage. I got the code coverage artifacts but can't see the coverage graph on the server...


Gilles

6 comments

Hello,

Do you see "Code Coverage" tab and coverage indicators (green bars) on build results?

--
Pavel Sher

0

No i'm sorry, the code coverage tab is empty ...
Still, i have coverage.em (10mb), coverage.ec (500kb) in my checkout directory, and i can download the code coverage data in my ide though... weird isn't it ;) ?

Gilles

0

Gilles Philippart wrote:

No i'm sorry, the code coverage tab is empty ...
Still, i have coverage.em (10mb), coverage.ec (500kb) in my checkout directory, and i can download the code coverage data in my ide though... weird isn't it ;) ?


TC requires coverage.txt summary report.

--
Alexey Gopachenko
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Hello,

Could you please submit an issue to our tracker and attach there your build log?

--
Pavel Sher

0

Now it's ok, i fixed the issue. There was a OOM in the build log. I increased the heap space with -Xmx=1024m in the JVM args.
Maybe you should put some hint in the Runner settings indicating that EMMA coverage may need more memory.

0

Usually it does not require so much memory however it might depend on the project size. If you are using relatively new Java (1.6 or 1.5_012) then you can try to add -XX:+HeapDumpOnOutOfMemoryError JVM argument and when OOM occurs you'll have memory snapshot in the working directory on agent.

--
Pavel Sher

0

Please sign in to leave a comment.