eclemma | : warning : OLD EclEmma repository | Code Editor library

 by   jacoco Java Version: v2.3.3 License: Non-SPDX

kandi X-RAY | eclemma Summary

kandi X-RAY | eclemma Summary

eclemma is a Java library typically used in Editor, Code Editor, Eclipse applications. eclemma has no vulnerabilities, it has build file available and it has high support. However eclemma has 195 bugs and it has a Non-SPDX License. You can download it from GitHub.

EclEmma is a free Java code coverage plug-in for [Eclipse] available under the [Eclipse Public License] Check [for downloads, documentation and feedback.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              eclemma has a highly active ecosystem.
              It has 83 star(s) with 35 fork(s). There are 16 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 25 open issues and 105 have been closed. On average issues are closed in 153 days. There are no pull requests.
              OutlinedDot
              It has a negative sentiment in the developer community.
              The latest version of eclemma is v2.3.3

            kandi-Quality Quality

              OutlinedDot
              eclemma has 195 bugs (2 blocker, 0 critical, 13 major, 180 minor) and 739 code smells.

            kandi-Security Security

              eclemma has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              eclemma code analysis shows 0 unresolved vulnerabilities.
              There are 1 security hotspots that need review.

            kandi-License License

              eclemma has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              eclemma releases are available to install and integrate.
              Build file is available. You can build the component from source.
              eclemma saves you 6366 person hours of effort in developing the same functionality from scratch.
              It has 13246 lines of code, 967 functions and 179 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed eclemma and discovered the below as its top functions. This is intended to give you an instant insight into eclemma implemented functionality, and help decide if they suit your requirements.
            • Creates the coverage control
            • Create local handlers
            • Draws a bar at the given event with the maximum value
            • Creates the actions for the editor
            • Creates the contents of this view
            • Create the table
            • Creates a column
            • Create the control
            • Create the export options group
            • Import a new session
            • Initialize the BundleManager
            • Cleanup resources
            • Launch the launch
            • Accepts the remote control
            • Attempts to find a nested java element within the given selection
            • Creates the dialog area
            • Override this to create the dialog s message area
            • Executes the event
            • Creates the contents of the Coverage Preferences page
            • Create the content of the session
            • Compare two elements
            • Merges all the provided Coverage sessions
            • Display active session
            • Process the remote control
            • Initializes the default preferences
            • Creates the filter content
            Get all kandi verified functions for this library.

            eclemma Key Features

            No Key Features are available at this moment for eclemma.

            eclemma Examples and Code Snippets

            No Code Snippets are available at this moment for eclemma.

            Community Discussions

            QUESTION

            Maven variable : Dollar vs Arobase?
            Asked 2022-Apr-14 at 10:44

            In this documentation, it is suggested to use "@{argLine}". What is the difference between "@{argLine}" and "${argLine}" ? Is there a scope difference ?

            Is this documented in maven doc ? (can't find it...).

            ...

            ANSWER

            Answered 2022-Apr-14 at 10:44

            @{argLine} instead of the usual ${argLine} is called "late property evaluation". This is only supported by the Maven Surefire Plugin.

            From the documentation:

            How do I use properties set by other plugins in argLine?

            Maven does property replacement for ${...} values in pom.xml before any plugin is run. So Surefire would never see the place-holders in its argLine property.

            Since the Version 2.17 using an alternate syntax for these properties, @{...} allows late replacement of properties when the plugin is executed, so properties that have been modified by other plugins will be picked up correctly.

            Source https://stackoverflow.com/questions/71869866

            QUESTION

            Getting a "no coverage data has been collected" message using EclEmma and Eclipse
            Asked 2021-Jan-07 at 02:00

            I recently had this very annoying problem come out of nowhere. Running my unit tests with EclEmma coverage enabled causes the following dialog window to pop up from Eclipse:

            For the search engines, it reads:

            No coverage data has been collected during this coverage Session.
            Please do not terminate the Java process manually from Eclipse.

            No coverage information is provided for any of the classes in my project. Needless to say I am not terminating the Java process manually. To try and fix it I: reimported my project, upgraded Java, reinstalled Emma, restarted my Macbook Pro, made sure that temp filesystem space looked good, and 20 other things I'm forgetting right now.

            I finally noticed that it was only a couple of my open source projects generating this error and decided to whittle down one of my tests. Here's the minimum test that reproduces the problem.

            Test class I'm trying to get coverage on:

            ...

            ANSWER

            Answered 2021-Jan-07 at 02:00

            EMMA is not used here, even if the name EclEmma might imply it. In fact, EclEmma started in 2006 as an Eclipse integration of EMMA. But more than 9 years ago, since EclEmma 2.0, EMMA has been replaced by JaCoCo, a free code coverage library for Java created by the EclEmma team.

            Since a code change in the application and/or in the test makes the problem go away, it is very unlikely that the coverage data is collected but not displayed. Therefore, the only likely remaining reason is that something is interfering with JaCoCo collecting the data. The FAQ of JaCoCo names what that might be:

            Why does a class show as not covered although it has been executed?

            First make sure execution data has been collected. For this select the Sessions link on the top right corner of the HTML report and check whether the class in question is listed. If it is listed but not linked the class at execution time is a different class file. Make sure you're using the exact same class file at runtime as for report generation. Note that some tools (e.g. EJB containers, mocking frameworks) might modify your class files at runtime. Please see the chapter about class ids for a detailed discussion.

            To make sure it's not a caching problem, try if also a minor code change makes the problem go away as well.

            The things you list that make the problem go away are very different, but all might affect the timing, which would indicate a concurrency issue. You might try to change the order of the tests and/or add Thread.sleep() at some places to see if that changes anything.

            However, in your case the root cause is unclear without having minimal reproducible example (that might be difficult to provide, if it is a concurrency issue).

            Update:

            As Evgeny Mandrikov pointed out, the root problem is indeed a concurrency issue of JUnit 4.13 and 4.13.1 (including all 4.13-beta-* and 4.13-rc-* versions, but previous versions of JUnit are not affected):

            JUnit 4 issue #1652: Timeout ThreadGroups should not be destroyed

            The issue has already been fixed for the upcoming JUnit 4.13.2 release.

            The following can be used as a workaround to prevent the thread group from being destroyed and thus JaCoCo loosing its collected data (by adding a dummy thread into that group):

            Source https://stackoverflow.com/questions/65511268

            QUESTION

            Jacoco code coverage: non-existent Static block shows only 75% coverage
            Asked 2020-Aug-26 at 12:38

            I have two static methods in the class BrickSortParallel. They are fully covered by unit tests. But I have a static block static {...} listed with only 75% code coverage by Jacoco. What does that signify?

            ...

            ANSWER

            Answered 2020-Aug-26 at 12:38

            To quote Marc R Hoffman on Jacoco Github:

            "Your code uses the assert keyword which results in a static initializer:

            Source https://stackoverflow.com/questions/63560283

            QUESTION

            How to properly run Eclemma coverage with Java
            Asked 2020-Mar-13 at 21:44

            We use non-java tests. Each one of them executes our tool which is written in Java. I'm trying to use Eclemma for creating the coverage report of the tests. Lets start with one test. We compile the code with build.xml. I would like somehow to create a coverage report for each test and then to merge them into one main report. I found out that Jacoco has CMD interface I could use in order to merge those reports. But I don't understand how do I run the tool with coverage package?

            1. Which coverage package should I use? Is it Eclemma or Jacoco?
            2. How do I run the tool with the coverage package? Should I add it into the build.xml file? Should I add it to the command line?

            I'm a bit confused about the whole idea of coverage in Java. In dynamic langues such as Python and Perl, I just execute the code with the coverage module, which creates the coverage report.

            The command we use to execute out tool:

            ...

            ANSWER

            Answered 2020-Mar-12 at 13:17

            As I know, the only place to add java agent is in the configuration of the unit tests.

            Agent should be added to the JVM that executes application under test. Your confusion probably comes from the fact that usually unit tests are executed in the same JVM as code under test.

            From your description unclear how JVM with the application is started.

            However consider following src/Main.java as an example:

            Source https://stackoverflow.com/questions/60410541

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install eclemma

            You can download it from GitHub.
            You can use eclemma like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the eclemma component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/jacoco/eclemma.git

          • CLI

            gh repo clone jacoco/eclemma

          • sshUrl

            git@github.com:jacoco/eclemma.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link