5 comments
Comment actions Permalink

Hello Anders,

Do you look for code coverage in classes chosen to record coverage data?
Or any exceptions in idea.log?

Thank you.

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

I can't get code coverage to display in 7269. Anyone else have this
problem?

http://www.jetbrains.net/jira/browse/IDEA-14811



0
Comment actions Permalink

None of the classes selected for coverage had any marking in the gutter.

There is an exception in the log that seems relevant:

2007-09-07 13:08:36,756 ERROR - pplication.impl.LaterInvocator -
java.lang.NoClassDefFoundError: Could not initialize class com.vladium.logging.Logger
at com.vladium.emma.data.DataFactory.mergeload(DataFactory.java:327)
at com.vladium.emma.data.DataFactory.load(DataFactory.java:56)
at com.intellij.coverage.CoverageSuiteImpl.b(CoverageSuiteImpl.java:60)
at com.intellij.coverage.CoverageSuiteImpl.getCoverageData(CoverageSuiteImpl.java:43)
at com.intellij.coverage.SrcFileAnnotator.showCoverageInformation(SrcFileAnnotator.java:88)
at com.intellij.coverage.CoverageDataManagerImpl.a(CoverageDataManagerImpl.java:10)
at com.intellij.coverage.CoverageDataManagerImpl.access$700(CoverageDataManagerImpl.java:35)
at com.intellij.coverage.CoverageDataManagerImpl$4$1.run(CoverageDataManagerImpl.java:2)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:3)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:170)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:18)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:105)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)**

0
Comment actions Permalink

May not be related to your issue, but I just updated to 7274 and I lost my code coverage results. I don't have the gutter information nor the percentages in the project view. I was previously running M2. The exceptions I get in the log are:

spath @C:\Documents and Settings\rthornton\Local Settings\Temp\javac_cp48133.tmp -sourcepath "" -d C:\dev\wle\out\production\Wle -g -deprecation @C:\Documents and Settings\rthornton\Local Settings\Temp\javac48134.tmp
2007-09-14 07:30:24,925 INFO - ry.xml.XmlBeanDefinitionReader - Loading XML bean definitions from resource loaded from byte array
2007-09-14 07:30:44,872 INFO - IDEA-Config - writeExternal(Element element)
2007-09-14 07:30:45,279 INFO - ort2.javacvsImpl.io.ReadThread - Starting CvsReadThread com.intellij.cvsSupport2.javacvsImpl.io.ReadThread@133a380, atEnd: false, firstIndex: 0, lastIndex: 0, exception: null, closed: false
2007-09-14 07:30:45,388 INFO - ort2.javacvsImpl.io.ReadThread - Stopping CvsReadThread com.intellij.cvsSupport2.javacvsImpl.io.ReadThread@133a380, atEnd: true, firstIndex: 103, lastIndex: 103, exception: null, closed: true
2007-09-14 08:09:43,706 ERROR - pplication.impl.LaterInvocator -
java.lang.NoClassDefFoundError: Could not initialize class com.vladium.logging.Logger
at com.vladium.emma.data.DataFactory.mergeload(DataFactory.java:327)
at com.vladium.emma.data.DataFactory.load(DataFactory.java:56)
at com.intellij.coverage.CoverageSuiteImpl.b(CoverageSuiteImpl.java:58)
at com.intellij.coverage.CoverageSuiteImpl.getCoverageData(CoverageSuiteImpl.java:19)
at com.intellij.coverage.SrcFileAnnotator.showCoverageInformation(SrcFileAnnotator.java:45)
at com.intellij.coverage.CoverageDataManagerImpl.a(CoverageDataManagerImpl.java:112)
at com.intellij.coverage.CoverageDataManagerImpl.access$700(CoverageDataManagerImpl.java:54)
at com.intellij.coverage.CoverageDataManagerImpl$4$1.run(CoverageDataManagerImpl.java:4)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:2)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:65)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:81)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:195)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Then later:

t2.javacvsImpl.io.ReadThread@c05f7f, atEnd: false, firstIndex: 0, lastIndex: 0, exception: null, closed: false
2007-09-14 08:43:40,594 INFO - ort2.javacvsImpl.io.ReadThread - Stopping CvsReadThread com.intellij.cvsSupport2.javacvsImpl.io.ReadThread@c05f7f, atEnd: true, firstIndex: 103, lastIndex: 103, exception: null, closed: true
2007-09-14 08:47:11,739 INFO - ort2.javacvsImpl.io.ReadThread - Starting CvsReadThread com.intellij.cvsSupport2.javacvsImpl.io.ReadThread@6d063f, atEnd: false, firstIndex: 0, lastIndex: 0, exception: null, closed: false
2007-09-14 08:47:11,770 INFO - ort2.javacvsImpl.io.ReadThread - Stopping CvsReadThread com.intellij.cvsSupport2.javacvsImpl.io.ReadThread@6d063f, atEnd: true, firstIndex: 103, lastIndex: 103, exception: null, closed: true
2007-09-14 08:47:12,051 INFO - ort2.javacvsImpl.io.ReadThread - Starting CvsReadThread com.intellij.cvsSupport2.javacvsImpl.io.ReadThread@f4611, atEnd: false, firstIndex: 0, lastIndex: 0, exception: null, closed: false
2007-09-14 08:47:12,082 INFO - ort2.javacvsImpl.io.ReadThread - Stopping CvsReadThread com.intellij.cvsSupport2.javacvsImpl.io.ReadThread@f4611, atEnd: true, firstIndex: 103, lastIndex: 103, exception: null, closed: true
2007-09-14 08:47:19,442 INFO - IDEA-Config - writeExternal(Element element)
2007-09-14 08:47:19,832 INFO - ort2.javacvsImpl.io.ReadThread - Starting CvsReadThread com.intellij.cvsSupport2.javacvsImpl.io.ReadThread@1575976, atEnd: false, firstIndex: 0, lastIndex: 0, exception: null, closed: false
2007-09-14 08:47:19,864 INFO - ort2.javacvsImpl.io.ReadThread - Stopping CvsReadThread com.intellij.cvsSupport2.javacvsImpl.io.ReadThread@1575976, atEnd: true, firstIndex: 103, lastIndex: 103, exception: null, closed: true
2007-09-14 08:49:48,644 ERROR - pplication.impl.LaterInvocator -
java.lang.NoClassDefFoundError: Could not initialize class com.vladium.logging.Logger
at com.vladium.emma.data.DataFactory.mergeload(DataFactory.java:327)
at com.vladium.emma.data.DataFactory.load(DataFactory.java:56)
at com.intellij.coverage.CoverageSuiteImpl.b(CoverageSuiteImpl.java:58)
at com.intellij.coverage.CoverageSuiteImpl.getCoverageData(CoverageSuiteImpl.java:19)
at com.intellij.coverage.SrcFileAnnotator.showCoverageInformation(SrcFileAnnotator.java:45)
at com.intellij.coverage.CoverageDataManagerImpl.a(CoverageDataManagerImpl.java:112)
at com.intellij.coverage.CoverageDataManagerImpl.access$700(CoverageDataManagerImpl.java:54)
at com.intellij.coverage.CoverageDataManagerImpl$4$1.run(CoverageDataManagerImpl.java:4)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:2)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:65)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:81)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:195)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

0
Comment actions Permalink

That's the same exception that I see in my log.

0
Comment actions Permalink

Some more information (I continue to get that exception):

- The coverage file in ]]>\.IntelliJIdea70\system\coverage is being generated (I can't say if it is correct or not but when I open it in TextPad it looks like it could be correct (mentions EMMA and has my class names)
- I tried deleting the file, turning off coverage, re-running my tests, then re-enabling and it made no difference. Coverage file still built but no data showing up in the Project window

Is there another way I could read this file? Could I use EMMA directly so I could get my coverage information without configuring a separate tool?

Thanks,
Rob

0

Please sign in to leave a comment.