profile
viewpoint
Evgeny Mandrikov Godin @SonarSource France, La Roche-sur-Foron https://godin.github.io .

Godin/dotfiles 13

:house_with_garden: godin

diver-in-sky/sonar 1

fork for GSoC2011 Manage a big clone index

Godin/amber 0

Read-only mirror of https://hg.openjdk.java.net/amber/amber/

Godin/android-playground 0

:construction:

Godin/byte-buddy 0

:fork_and_knife: Runtime code generation for the Java virtual machine.

Godin/checkstyle 0

Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.

created tagSonarSource/sslr

tag1.24.0.633

SonarSource Language Recognizer

created time in a minute

release SonarSource/sslr

1.24.0.633

released time in a minute

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 9a641a562e82f201a6d6c5a80688aa63c6dff54e

Add GitHub release workflow

view details

push time in 5 minutes

created tagSonarSource/sslr

tag1.24.0.632

SonarSource Language Recognizer

created time in 9 minutes

release SonarSource/sslr

1.24.0.632

released time in 9 minutes

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 7cdb5984864c3458e24276b2f600f830fdd06cca

Remove Guava even from test dependencies

view details

Evgeny Mandrikov

commit sha f9f942bb2845956d3fcd2161562f097f73789331

SSLR-393 ClassLoader used by Interceptor should delegate to ClassLoader of intercepted class, not to system

view details

Evgeny Mandrikov

commit sha e1979f925d947dd323349c2d95200449b59e5cd4

Add GitHub release workflow

view details

push time in 13 minutes

created tagSonarSource/sslr

tag1.24.0.631

SonarSource Language Recognizer

created time in 21 minutes

release SonarSource/sslr

1.24.0.631

released time in 21 minutes

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha cae72e32d8bd3b3e6f29bbeaab6fdb43e7726892

SSLR-393 ClassLoader used by Interceptor should delegate to ClassLoader of intercepted class, not to system

view details

Evgeny Mandrikov

commit sha be0f89af96bae2c49a139d627b6df17e1821c644

Enable publication to Bintray

view details

push time in 26 minutes

delete tag SonarSource/sslr

delete tag : 1.24.0.620

delete time in 28 minutes

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha e063d65de1e55dd21bc2d078d8d783e94beed21d

Enable publication to Bintray

view details

push time in 33 minutes

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 977337e4969ac328b4a1404bb43f6459c24259d5

Enable publication to Bintray

view details

push time in 35 minutes

created tagSonarSource/sslr

tag1.24.1.628

SonarSource Language Recognizer

created time in an hour

release SonarSource/sslr

1.24.1.628

released time in an hour

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 6a04e930d9aeb1eb2bcec0464b877b4d48ab6a11

SSLR-394 ClassLoader used by Interceptor should delegate to ClassLoader of intercepted class, not to system

view details

push time in an hour

created tagSonarSource/sslr

tag1.24.1.627

SonarSource Language Recognizer

created time in an hour

release SonarSource/sslr

1.24.1.627

released time in an hour

push eventSonarSource/SonarJS

Evgeny Mandrikov

commit sha 04aff10c434009ed39cae6463d32f2aa103dc307

Update SSLR to 1.24.1 To get rid of illegal reflective access.

view details

push time in 2 hours

push eventSonarSource/sonar-php

Evgeny Mandrikov

commit sha 77d0930efc4349e5b3c11c5bc82e1ca250499816

SONARPHP-1072 Update SSLR to 1.24.1 To get rid of illegal reflective access.

view details

push time in 2 hours

delete branch SonarSource/sslr

delete branch : SSLR-394

delete time in 5 hours

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 0fb695f3fdeeb7dce1dfb4b91465454fd62f2ebc

SSLR-394 ClassLoader used by Interceptor should delegate to ClassLoader of intercepted class, not to system

view details

push time in 5 hours

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 817ab7cb4a75a2a7080983dd4ed2aa2bdb8076c1

SSLR-394 ClassLoader used by Interceptor should delegate to ClassLoader of intercepted class, not to system

view details

push time in 5 hours

PR opened SonarSource/sonar-php

SONARPHP-1072 Update SSLR to 1.24.1

To get rid of illegal reflective access.

+1 -7

0 comment

2 changed files

pr created time in 5 hours

create barnchSonarSource/sonar-php

branch : SONARPHP-1072

created branch time in 5 hours

push eventSonarSource/SonarJS

Evgeny Mandrikov

commit sha 4815054ec2d870447a3bd8b8b893fbac4c013d11

Update SSLR to 1.24.1 To get rid of illegal reflective access.

view details

push time in 5 hours

create barnchSonarSource/sslr

branch : SSLR-394

created branch time in 5 hours

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 2fa8577b1a8ded5149bac343b95d3f72aaec057b

Prepare for next development iteration

view details

push time in 6 hours

PR opened SonarSource/SonarJS

Reviewers
Update SSLR to 1.24

To get rid of illegal reflective access.

+1 -9

0 comment

2 changed files

pr created time in 6 hours

create barnchSonarSource/SonarJS

branch : sslr

created branch time in 6 hours

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha fb8b31bdf18088fac5e4cc0363670fee4e735ffd

Prepare for next development iteration

view details

push time in 7 hours

created tagSonarSource/sslr

tag1.24.0.620

SonarSource Language Recognizer

created time in 7 hours

release SonarSource/sslr

1.24.0.620

released time in 7 hours

delete tag SonarSource/sslr

delete tag : 1.24.0.622

delete time in 7 hours

created tagSonarSource/sslr

tag1.24.0.622

SonarSource Language Recognizer

created time in 7 hours

release SonarSource/sslr

1.24.0.622

released time in 7 hours

push eventSonarSource/sslr

push time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha ed4496e4621a8fbad51132c9adff9a46b1ba71ef

Version 1.24

view details

push time in a day

delete branch SonarSource/sslr

delete branch : cleanup

delete time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 0a720380efa5f75ca5f93a9228a9b1992abdc492

Remove Guava even from test dependencies

view details

push time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 0a720380efa5f75ca5f93a9228a9b1992abdc492

Remove Guava even from test dependencies

view details

push time in a day

create barnchSonarSource/sslr

branch : cleanup

created branch time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 783dfe86b7209522985e55ab5ef3ffef4dd03f5a

Add GitHub release workflow

view details

push time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 99ef5acf5979e2983df64ba2b67f41f2bb3db2eb

Update parent pom to 54

view details

push time in a day

delete branch SonarSource/sslr

delete branch : SSLR-393

delete time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 9a0196932674428293ee3d59a543fed40a71f94e

SSLR-393 Replace cglib by ASM To get rid of illegal reflective access.

view details

push time in a day

PR merged SonarSource/sslr

SSLR-393 Replace cglib by ASM
+413 -41

1 comment

7 changed files

Godin

pr closed time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 3d0519b62e76227715bf4c8c09f4a320f6145a78

SSLR-393 Replace cglib by ASM To get rid of illegal reflective access.

view details

push time in a day

PR opened SonarSource/sslr

SSLR-393 Replace cglib by ASM
+411 -41

0 comment

7 changed files

pr created time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 049251105b4b99da357b2f0b9b14f564f095a4b0

(WIP) Replace cglib by ASM

view details

push time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha febae420f8549437848af458a68f6a44fc37d891

(WIP) Replace cglib by ASM

view details

push time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha f2838189140b6cb0441f600b8b13417274caccc4

(WIP) Replace cglib by ASM

view details

push time in a day

create barnchSonarSource/sslr

branch : SSLR-393

created branch time in a day

delete branch SonarSource/sslr

delete branch : cleanup

delete time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 0b2731a16464da67909704eecb553e191c0a194c

Replace deprecated ExpectedException by assertThrows

view details

push time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 6d7b9bc5a923f8693b40ffe463cce9d497f87da4

Replace deprecated ExpectedException by assertThrows

view details

push time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha d0694cbabc1634f87056a94fc090622214d83bc4

Replace deprecated ExpectedException by assertThrows

view details

push time in a day

PR opened SonarSource/sslr

Replace deprecated ExpectedException by assertThrows
+293 -431

0 comment

40 changed files

pr created time in a day

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 2bca80813d0d74e14c2818ddc3cf41dd939f12b9

Replace deprecated ExpectedException by assertThrows

view details

push time in 3 days

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha dad6232b23becf164f9000660ea8476bd2ff8d58

Replace deprecated ExpectedException by assertThrows

view details

push time in 3 days

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 5993769630eaf555c98d6a1123d10079cbbf7634

Upgrade JUnit to 4.13.1

view details

Evgeny Mandrikov

commit sha 96fee0d544004722f306653ff723605bcf7bba66

Replace deprecated ExpectedException by assertThrows

view details

push time in 3 days

delete branch SonarSource/sslr

delete branch : junit_upgrade

delete time in 5 days

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 5993769630eaf555c98d6a1123d10079cbbf7634

Upgrade JUnit to 4.13.1

view details

push time in 5 days

PR merged SonarSource/sslr

Upgrade JUnit to 4.13.1

Fixes #25

+5 -4

1 comment

2 changed files

Godin

pr closed time in 5 days

PR closed SonarSource/sslr

Bump junit from 4.10 to 4.13.1 dependencies

Bumps junit from 4.10 to 4.13.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/junit-team/junit4/releases">junit's releases</a>.</em></p> <blockquote> <h2>JUnit 4.13.1</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit/blob/HEAD/doc/ReleaseNotes4.13.1.md">release notes</a> for details.</p> <h2>JUnit 4.13</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit/blob/HEAD/doc/ReleaseNotes4.13.md">release notes</a> for details.</p> <h2>JUnit 4.13 RC 2</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit4/wiki/4.13-Release-Notes">release notes</a> for details.</p> <h2>JUnit 4.13 RC 1</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit4/wiki/4.13-Release-Notes">release notes</a> for details.</p> <h2>JUnit 4.13 Beta 3</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit4/wiki/4.13-Release-Notes">release notes</a> for details.</p> <h2>JUnit 4.13 Beta 2</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit4/wiki/4.13-Release-Notes">release notes</a> for details.</p> <h2>JUnit 4.13 Beta 1</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit4/wiki/4.13-Release-Notes">release notes</a> for details.</p> <h2>JUnit 4.12</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit/blob/HEAD/doc/ReleaseNotes4.12.md">release notes</a> for details.</p> <h2>JUnit 4.12 Beta 3</h2> <p>Please refer to the <a href="https://github.com/junit-team/junit/blob/HEAD/doc/ReleaseNotes4.12.md">release notes</a> for details.</p> <h2>JUnit 4.12 Beta 2</h2> <p>No release notes provided.</p> <h2>JUnit 4.12 Beta 1</h2> <p>No release notes provided.</p> <h2>JUnit 4.11</h2> <p>No release notes provided.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/junit-team/junit4/commit/1b683f4ec07bcfa40149f086d32240f805487e66"><code>1b683f4</code></a> [maven-release-plugin] prepare release r4.13.1</li> <li><a href="https://github.com/junit-team/junit4/commit/ce6ce3aadc070db2902698fe0d3dc6729cd631f2"><code>ce6ce3a</code></a> Draft 4.13.1 release notes</li> <li><a href="https://github.com/junit-team/junit4/commit/c29dd8239d6b353e699397eb090a1fd27411fa24"><code>c29dd82</code></a> Change version to 4.13.1-SNAPSHOT</li> <li><a href="https://github.com/junit-team/junit4/commit/1d174861f0b64f97ab0722bb324a760bfb02f567"><code>1d17486</code></a> Add a link to assertThrows in exception testing</li> <li><a href="https://github.com/junit-team/junit4/commit/543905df72ff10364b94dda27552efebf3dd04e9"><code>543905d</code></a> Use separate line for annotation in Javadoc</li> <li><a href="https://github.com/junit-team/junit4/commit/510e906b391e7e46a346e1c852416dc7be934944"><code>510e906</code></a> Add sub headlines to class Javadoc</li> <li><a href="https://github.com/junit-team/junit4/commit/610155b8c22138329f0723eec22521627dbc52ae"><code>610155b</code></a> Merge pull request from GHSA-269g-pwp5-87pp</li> <li><a href="https://github.com/junit-team/junit4/commit/b6cfd1e3d736cc2106242a8be799615b472c7fec"><code>b6cfd1e</code></a> Explicitly wrap float parameter for consistency (<a href="https://github-redirect.dependabot.com/junit-team/junit4/issues/1671">#1671</a>)</li> <li><a href="https://github.com/junit-team/junit4/commit/a5d205c7956dbed302b3bb5ecde5ba4299f0b646"><code>a5d205c</code></a> Fix GitHub link in FAQ (<a href="https://github-redirect.dependabot.com/junit-team/junit4/issues/1672">#1672</a>)</li> <li><a href="https://github.com/junit-team/junit4/commit/3a5c6b4d08f408c8ca6a8e0bae71a9bc5a8f97e8"><code>3a5c6b4</code></a> Deprecated since jdk9 replacing constructor instance of Double and Float (<a href="https://github-redirect.dependabot.com/junit-team/junit4/issues/1660">#1660</a>)</li> <li>Additional commits viewable in <a href="https://github.com/junit-team/junit4/compare/r4.10...r4.13.1">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+1 -1

0 comment

1 changed file

dependabot[bot]

pr closed time in 5 days

push eventGodin/jacoco

Evgeny Mandrikov

commit sha cb72979b049b4b9e1c153736601c1651319f5d06

Upgrade JUnit to 4.13.1 (#1106)

view details

Marc R. Hoffmann

commit sha fa6a84392bfb72d62e4fd1b6d6638d17ca80b76e

Upgrade Groovy to 3.0.6 (#1060) Co-authored-by: Andres Almiray <aalmiray@yahoo.com> Co-authored-by: Marc R. Hoffmann <hoffmann@mountainminds.com>

view details

push time in 5 days

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 77b1c4c382638b643ef454cd0c73489c31a514ed

Upgrade JUnit to 4.13.1

view details

push time in 5 days

PR opened SonarSource/sslr

Upgrade Junit to 4.13.1

Fixes #25

+5 -4

0 comment

2 changed files

pr created time in 5 days

create barnchSonarSource/sslr

branch : junit_upgrade

created branch time in 5 days

delete branch SonarSource/sslr

delete branch : SSLR-387

delete time in 5 days

delete branch SonarSource/sslr

delete branch : doc/gac/dev-docs-move

delete time in 5 days

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 878c595534de4ce253e0b55e2d19b86284f2ea0a

Remove unused import

view details

push time in 5 days

create barnchSonarSource/sslr

branch : cleanup

created branch time in 5 days

push eventjacoco/eclemma.com

Travis CI

commit sha 9f1606dc4b81504085e97a356617cf45aec12095

Automatic deployment

view details

push time in 5 days

push eventjacoco/eclemma.org

Travis CI

commit sha 96adb5914e3eb7283eb275c19692b8d7f738e719

Automatic deployment

view details

push time in 5 days

push eventjacoco/jacoco.org

Travis CI

commit sha 5e2a6234738571ac53c02f5a3c9da0606c24e926

Automatic deployment

view details

push time in 5 days

push eventjacoco/jacoco.github.io

Travis CI

commit sha 5056d77f40b264d2174069d220ed56d5f910a7b2

Automatic deployment

view details

push time in 5 days

delete branch SonarSource/sslr

delete branch : jacoco

delete time in 6 days

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 56d090347323e2dacaadff179e0c483139410179

Upgrade JaCoCo to 0.8.6

view details

push time in 6 days

push eventSonarSource/sslr

Evgeny Mandrikov

commit sha 093b1c9ada084130b1e414d8e0e18ffd25c91628

(WIP)

view details

push time in 6 days

issue closedjacoco/jacoco

Jacoco + android no coverage com.android.tools.build:gradle:4.1.0

Steps to reproduce

  • JaCoCo version: 0.8.6 (tested with 0.8.5 too)
  • Operating system: Windows 10 and Bitrise virtual (ubuntu?)
  • Tool integration: gradle
  • Complete executable reproducer: not provided, NDA
  • Steps: integrate jacoco with Android which uses:
 ext {
        compileSdkVer = 30
        targetSdkVer = 30
        minSdkVer = 21
        gradleBuildToolsVer = '4.1.0'
}
dependencies {
        classpath "com.android.tools.build:gradle:${gradleBuildToolsVer}"
}

gradlew jacocoTestReport

Expected behaviour

Test coverage show actual result

Actual behaviour

All test coverage is 0

When downgrade gradleBuildToolsVer to version 4.0.1 jacoco works as expected

closed time in 6 days

mtrakal

issue commentjacoco/jacoco

Jacoco + android no coverage com.android.tools.build:gradle:4.1.0

related, so maybe it's not on Jacoco, but on Google: https://issuetracker.google.com/issues/171125857 but who know...

given that

When downgrade gradleBuildToolsVer to version 4.0.1 jacoco works as expected

the issue is in com.android.tools.build

mtrakal

comment created time in 6 days

create barnchSonarSource/sslr

branch : jacoco

created branch time in 6 days

issue commentjacoco/jacoco

jacoco.exec file Very large

Each execution of dump with append="true" appends a new session to the destfile.

Depending on what you're doing with dumps, you can choose one or many of the following

  • use reset="true" so that new sessions will contain only data since the previous dump
  • and/or use append="false" so that destfile will be overridden
  • and/or remove destfile prior to dump
  • and/or use merge after dump to merge information about the same classes form multiple sessions into one session
  • and/or use agent options includes/excludes to choose classes that will be present in the sessions

Documentation about all these options available at https://www.jacoco.org/jacoco/trunk/doc/

liangshaoJY

comment created time in 7 days

IssuesEvent

issue commentjacoco/jacoco

Jacoc coverage check failed due to exclusions appears as 0% coverage

I tried to do exclusion in the top level as below expecting the particular classes will remove from jacoco.exec file.

When you specify configuration "in the top level" it applies to all goals, however as was already explained - for report and check goals excludes specify names of files, whereas names of classes for prepare-agent.

Using the same example from https://github.com/jacoco/jacoco/issues/1108#issuecomment-711159451 with following pom.xml

<project>
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.example</groupId>
  <artifactId>example</artifactId>
  <version>0.1-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.13.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>0.8.6</version>
        <configuration>
          <excludes>
            <exclude>example/A.class</exclude>
          </excludes>
        </configuration>
        <executions>
          <execution>
            <id>prepare-agent</id>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
          </execution>
          <execution>
            <id>report-and-check</id>
            <goals>
              <goal>report</goal>
              <goal>check</goal>
            </goals>
            <configuration>
              <rules>
                <rule>
                  <limits>
                    <limit>
                      <counter>LINE</counter>
                      <value>COVEREDRATIO</value>
                      <minimum>100%</minimum>
                    </limit>
                  </limits>
                </rule>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>

after execution of mvn clean verify following command

java -jar jacoco-0.8.6/lib/jacococli.jar execinfo target/jacoco.exec | grep example

shows that jacoco.exec contains example/A

25aee8d92c5362e2    1 of   1   example/A
fdcca0cd19f8d732    2 of   2   example/ExampleTest

Whereas using the following pom.xml

<project>
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.example</groupId>
  <artifactId>example</artifactId>
  <version>0.1-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.13.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>0.8.6</version>
        <configuration>
          <excludes>
            <exclude>example/A</exclude>
          </excludes>
        </configuration>
        <executions>
          <execution>
            <id>prepare-agent</id>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
          </execution>
          <execution>
            <id>report-and-check</id>
            <goals>
              <goal>report</goal>
              <goal>check</goal>
            </goals>
            <configuration>
              <rules>
                <rule>
                  <limits>
                    <limit>
                      <counter>LINE</counter>
                      <value>COVEREDRATIO</value>
                      <minimum>100%</minimum>
                    </limit>
                  </limits>
                </rule>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>

after execution of mvn clean verify same command

java -jar jacoco-0.8.6/lib/jacococli.jar execinfo target/jacoco.exec | grep example

shows that jacoco.exec does not contain example/A

fdcca0cd19f8d732    2 of   2   example/ExampleTest

Once again please pay attention to the difference between file name example/A.class in the first case and class name example/A in the second case.

In the first case file example/A.class is excluded from generation of report, but class example/A is not excluded from instrumentation and appears in jacoco.exec.

In the second case vise versa - class example/A is excluded from instrumentation and does not appear in jacoco.exec, but not excluded from generation of report and appears in it.


when I check jacoco.exec file via IntelliJ

But when I open the jacoco.exec file I could see 0%.

Yes - in both above cases IntelliJ shows

Run_and_Menubar

example_–_ExampleTest_java

Integration with IntelliJ is not developed by us here, so how IntelliJ shows the content of jacoco.exec is a question to developers of IntelliJ.

However as was already pointed in https://github.com/jacoco/jacoco/issues/1108#issuecomment-711151271 https://www.jacoco.org/jacoco/trunk/doc/faq.html states

report generator cannot distinguish whether the class was excluded from instrumentation or not executed

See that above example/B is not presented in both cases - jacoco.exec contains information about only executed classes and based only on jacoco.exec impossible to distinguish whether class was excluded from instrumentation or not executed.

And that's why generation of report requires explicit specification of class files included into the report.

And so that's probably why IntelliJ always shows all classes.

sudheerah

comment created time in 9 days

issue commentjacoco/jacoco

Jacoc coverage check failed due to exclusions appears as 0% coverage

Given

src/main/java/example/A.java

package example;

class A {
}

src/main/java/example/B.java

package example;

class B {
}

src/test/java/example/ExampleTest.java

package example;

import org.junit.Test;

public class ExampleTest {
  @Test
  public void test() {
    new A();
  }
}

and pom.xml

<project>
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.example</groupId>
  <artifactId>example</artifactId>
  <version>0.1-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.13.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>0.8.6</version>
        <executions>
          <execution>
            <id>prepare-agent</id>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
          </execution>
          <execution>
            <id>report-and-check</id>
            <goals>
              <goal>report</goal>
              <goal>check</goal>
            </goals>
            <configuration>
              <excludes>
                <exclude>example/B.class</exclude>
              </excludes>
              <rules>
                <rule>
                  <limits>
                    <limit>
                      <counter>LINE</counter>
                      <value>COVEREDRATIO</value>
                      <minimum>100%</minimum>
                    </limit>
                  </limits>
                </rule>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>

execution of

mvn verify

succeeds

[INFO] --- jacoco-maven-plugin:0.8.6:report (report-and-check) @ example ---
[INFO] Loading execution data file /private/tmp/j/target/jacoco.exec
[INFO] Analyzed bundle 'example' with 1 classes
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.6:check (report-and-check) @ example ---
[INFO] Loading execution data file /private/tmp/j/target/jacoco.exec
[INFO] Analyzed bundle 'example' with 1 classes
[INFO] All coverage checks have been met.

even if example/B.java has zero coverage and produces following report

Screenshot 2020-10-18 at 14 15 03

while without

                <exclude>example/B.class</exclude>

fails

[INFO] --- jacoco-maven-plugin:0.8.6:report (report-and-check) @ example ---
[INFO] Loading execution data file /private/tmp/j/target/jacoco.exec
[INFO] Analyzed bundle 'example' with 2 classes
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.6:check (report-and-check) @ example ---
[INFO] Loading execution data file /private/tmp/j/target/jacoco.exec
[INFO] Analyzed bundle 'example' with 2 classes
[WARNING] Rule violated for bundle example: lines covered ratio is 0.50, but expected minimum is 1.00

and produces following report

Screenshot 2020-10-18 at 14 16 55

sudheerah

comment created time in 10 days

push eventjacoco/eclemma.com

Travis CI

commit sha b5c451beb69938ad4e44ec77c469df263e1829bf

Automatic deployment

view details

push time in 10 days

push eventjacoco/eclemma.org

Travis CI

commit sha f03c151fc0ded5f2ffb9e255ee6e064fa28470bf

Automatic deployment

view details

push time in 10 days

push eventjacoco/jacoco.org

Travis CI

commit sha 886ed6e44f56d825b3a7cc09e1d2fd97270eb203

Automatic deployment

view details

push time in 10 days

push eventjacoco/jacoco.github.io

Travis CI

commit sha 5236408cdeecf4a737d6076bf06004a51a318194

Automatic deployment

view details

push time in 10 days

issue commentjacoco/jacoco

Jacoc coverage check failed due to exclusions appears as 0% coverage

completely remove class from jacoco.exec

Please read "Why do I see classes in the coverage report although I excluded them in the JaCoCo agent configuration?" in https://www.jacoco.org/jacoco/trunk/doc/faq.html

rather than showing 0%

I already told you in https://github.com/jacoco/jacoco/issues/1108#issuecomment-711130048 that to exclude a class from report and check you should correctly configure excludes for these goals:

                        <goals>
                            <goal>check</goal>
                        </goals>
                        <configuration>
                            <excludes>
                                <exclude>**/*Example.class</exclude>
                            </excludes>
                            <rules>
                                <rule>
                                    <limits>
                                        <limit>
                                            <counter>LINE</counter>
                                            <value>COVEREDRATIO</value>
                                            <minimum>80%</minimum>
                                        </limit>
                                    </limits>
                                </rule>
                            </rules>
                        </configuration>

excludes for prepare-agent and check are different - first one accepts names of classes org/example/Example, whereas second one is about names of files org/example/Example.class.

sudheerah

comment created time in 10 days

issue commentjacoco/jacoco

Jacoc coverage check failed due to exclusions appears as 0% coverage

You seem to also configure exclusions for prepare-agent. This means that agent won't instrument class and hence indeed won't record anything about it into jacoco.exec.

sudheerah

comment created time in 10 days

issue closedjacoco/jacoco

Jacoc coverage check failed due to exclusions appears as 0% coverage

I have use below configuration in jacoco plugin

<plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <configuration>
                    <dataFile>${user.dir}/target/jacoco.exec</dataFile>
                    <excludes>
                        <exclude>**/*myclass</exclude>
                    </excludes>
                </configuration>
                <executions>
                    <execution>
                        <id>agent-for-ut</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                        <configuration>
                            <append>true</append>
                            <destFile>${user.dir}/target/jacoco.exec</destFile>
                        </configuration>
                    </execution>
                    <execution>
                        <id>jacoco-site</id>
                        <phase>test</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${user.dir}/target/coverage-reports/jacoco</outputDirectory>
                        </configuration>
                    </execution>
                    <execution>
                        <id>jacoco-check</id>
                        <phase>test</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <rule>
                                    <limits>
                                        <limit>
                                            <counter>LINE</counter>
                                            <value>COVEREDRATIO</value>
                                            <minimum>80%</minimum>
                                        </limit>
                                    </limits>
                                </rule>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

But issue is when add exclusion, coverage percentage reduced further (become worse) as excluded packages become 0%.

Is there a solution for this?

closed time in 10 days

sudheerah

issue commentjacoco/jacoco

Jacoc coverage check failed due to exclusions appears as 0% coverage

excludes for report and check must refer to class files, so seems that you're missing .class file extension

<exclude>**/*myclass.class</exclude>
sudheerah

comment created time in 10 days

delete branch jacoco/jacoco

delete branch : groovy-latest-2.x

delete time in 12 days

push eventjacoco/jacoco

Marc R. Hoffmann

commit sha fa6a84392bfb72d62e4fd1b6d6638d17ca80b76e

Upgrade Groovy to 3.0.6 (#1060) Co-authored-by: Andres Almiray <aalmiray@yahoo.com> Co-authored-by: Marc R. Hoffmann <hoffmann@mountainminds.com>

view details

push time in 12 days

PR closed jacoco/jacoco

Reviewers
Bump groovy versions
+2 -2

0 comment

1 changed file

aalmiray

pr closed time in 12 days

more