Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Coverage fails, but suite runs fine! #106

Merged
merged 1 commit into from
Sep 11, 2015
Merged

Coverage fails, but suite runs fine! #106

merged 1 commit into from
Sep 11, 2015

Conversation

marchof
Copy link
Member

@marchof marchof commented Sep 11, 2015

image

To me, this looks like it might not be an issue with EclEmma, but since I'm not seeing this error except when running coverage I thought I'd start here. I'm semi-familiar with what this error means in general in Java, which makes me wonder why I'm only seeing it when running coverage.

If anyone knows a tip for tracking it down, let me know!

@marchof
Copy link
Member

marchof commented Aug 17, 2015

Indeed, this looks strange. Can you please check the Eclipse log for additional information or a related stack trace? The Eclipse log file is located here

<your workspace>/.metadata/.log

@lucasyvas
Copy link
Author

I'm afraid it's quite unhelpful:

!ENTRY org.eclipse.jdt.core 4 -1 2015-08-17 13:37:22.150
!MESSAGE 'if' is not a valid Java identifier

I'm running EclEmma 2.3.2.201409141915 and Eclipse Luna (as per current project requirement)

@marchof
Copy link
Member

marchof commented Aug 18, 2015

We also use EclEmma on Eclipse Luna -- without any issue.

If open the Coverage launch dialog (with Coverage as...) you can select the source folders and libraries which are on scope for coverage analysis. Can you please narrow down the scope to see which source folder / library is affected? Maybe you can create a reproducer this way.

@lucasyvas
Copy link
Author

I spent a few days pouring over it all, as it's a large code base. I'm curious to see what the root cause is, but I opted to run it in batch and merge afterwards, which worked fine surprisingly. The top level JUnit seems to make it throw a fit. A little strange, but maybe the workspace is gimped since another one of our developers could not reproduce the issue.

@lucasyvas lucasyvas closed this Aug 28, 2015
@marchof marchof reopened this Sep 2, 2015
@marchof
Copy link
Member

marchof commented Sep 2, 2015

Currently exceptions stack traces of internal errors get mostly lost. The reason is usage of CoreException.getStatus() method:

http:https://help.eclipse.org/luna/topic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/CoreException.html#getStatus()

marchof added a commit that referenced this pull request Sep 11, 2015
Coverage fails, but suite runs fine!
@marchof marchof merged commit fc627bd into master Sep 11, 2015
@marchof marchof deleted the issue-106 branch September 11, 2015 10:54
@jacoco jacoco locked and limited conversation to collaborators Jan 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants