Comments (8)
I need to modify the agent to startup the same runtime as was used by the instrumenttask.
from jacoco.
See: 4909eb1
from jacoco.
This now works but needs tests.
from jacoco.
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.
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.
Yes, this is the only way I currently see: A direct dependency from instrumented classes to the JaCoCo runtime.
from jacoco.
Here is a implementation for offline mode: jacoco#58
from jacoco.
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)
- Parsing of source directives from inner classes appears to be broken HOT 1
- Should extend syncexit filter to more generally filter coverage of finally blocks HOT 1
- Source directives don't work on switch blocks HOT 4
- Branch coverage of shortcircuited if blocks seems wrong HOT 1
- Filtering options for coverage analysis
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jacoco.