Unable to get exclusions to work in Eclipse

32 views
Skip to first unread message

Simbosan

unread,
May 2, 2018, 5:40:36 PM5/2/18
to JaCoCo and EclEmma Users
I have tried everything:

Trying to exclude a class called IntegrationTest  (just an example)

The name of the class: IntegrationTest
The name of the class with .class: IntegrationTest.class
The name of the class with wildcards: *IntegrationTest*
The full path including: /src/main/java/<package>/IntegrationTest
The package name: com.test.IntegrationTest
package name with class: com.test.IntegrationTest.class

Exclude EVERYTHING: *

IntegrationTest always runs!

What am I missing here, or is this feature not working?

Eclipse Java EE IDE for Web Developers.
Version: Oxygen.3a Release (4.7.3a)
Build id: 20180405-1200
OS: Windows 10, v.10.0, x86_64 / win32

EclEmma Java Code Coverage    3.1.0.201804041601    org.eclipse.eclemma.feature.feature.group    Eclipse EclEmma

Marc Hoffmann

unread,
May 2, 2018, 5:49:06 PM5/2/18
to jac...@googlegroups.com
Hi,

where exactly do you configure the exclusion?

IntegrationTest always runs!

Excluding classes from code coverage does not mean they are not executed. They are still executed but code coverage is not recorded.

Regards,
-marc

--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/7600a48b-f9a0-4447-8f3b-cc63d85bb833%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Simbosan

unread,
May 2, 2018, 7:02:00 PM5/2/18
to JaCoCo and EclEmma Users
Well I shall slink off and die of embarrassment then =)

Many thanks for the reply.

I'm using @Category to group JUnit tests and I wanted to get Coverage to follow the same categories.   I can drive the Category system fine from Maven either via Eclipse Maven builds or via command line, but getting Eclipse to understand JUnit categories is proving impossible.

Thanks again for the quick reply.

S

Marc Hoffmann

unread,
May 3, 2018, 8:12:09 AM5/3/18
to jac...@googlegroups.com

I have no experience with JUnit Categories. But from a quick research it looks like you can build JUnit test suites from Categories. This would allow you to run the specific suite from Eclipse.

--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages