Code Monkey home page Code Monkey logo

Comments (8)

mchr3k avatar mchr3k commented on July 21, 2024

I need to modify the agent to startup the same runtime as was used by the instrumenttask.

from jacoco.

mchr3k avatar mchr3k commented on July 21, 2024

See: 4909eb1

from jacoco.

mchr3k avatar mchr3k commented on July 21, 2024

This now works but needs tests.

from jacoco.

marchof avatar marchof commented on July 21, 2024

I had a quick look at the change set: Note that a important use case for offline instrumentation are environments where no Java agent is available (e.g. Android VM).

from jacoco.

mchr3k avatar mchr3k commented on July 21, 2024

Good point. Do you have any suggestions for how to initialise the runtime without an agent?

I wonder if a new runtime could be used which would insert explicit calls to a JaCoCo class. A static initializer on the JaCoCo class coud initialize the runtime.

from jacoco.

marchof avatar marchof commented on July 21, 2024

Yes, this is the only way I currently see: A direct dependency from instrumented classes to the JaCoCo runtime.

from jacoco.

marchof avatar marchof commented on July 21, 2024

@mchr3k

Here is a implementation for offline mode: jacoco#58

from jacoco.

mchr3k avatar mchr3k commented on July 21, 2024

Thanks for the reference. My fork already has offline instrumentation - is your implementation similar? I'll check myself later but I'm on my phone just now.

Also, merry Xmas :)

from jacoco.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.