Comments (4)
Asterisks (*
) in your command are interpreted by your shell
i.e. for
--classfiles /mnt/hdd01/zcp/doris/fe/*/target/classes/org/apache/doris/*/*.class
the real executed command is something like
--classfiles class1.class /mnt/hdd01/zcp/doris/fe/fe-common/target/classes/org/apache/doris/catalog/AnyElementType.class
whereas should be
--classfiles class1.class --classfiles /mnt/hdd01/zcp/doris/fe/fe-common/target/classes/org/apache/doris/catalog/AnyElementType.class
as per documentation https://www.jacoco.org/jacoco/trunk/doc/cli.html every argument such as
/mnt/hdd01/zcp/doris/fe/fe-common/target/classes/org/apache/doris/catalog/AnyElementType.class
without preceding --classfiles
is interpreted as exec file and not as class file, resulting in
[INFO] Loading execution data file /mnt/hdd01/zcp/doris/fe/fe-common/target/classes/org/apache/doris/catalog/AnyElementType.class. Exception in thread "main" java.io.IOException: Invalid execution data file.
as expected.
from jacoco.
OK, got it. thank so much.
btw, in my cases, there is so many .class files, if each of it need --classfiles, this command line is particularly large, idon't know Is there a better way?
from jacoco.
You don't need to specify each file - you can specify directory.
from jacoco.
ok, thank you so much
from jacoco.
Related Issues (20)
- Support excluding classes from reporting on CLI HOT 1
- [Android Studio] UnitTest and Instrumentation testcases are passing 100% but in report Test Coverage is shown as 0% HOT 4
- probe insertion strategy question HOT 3
- Kt staitc interface mothod catch an NoSuchMethodError HOT 1
- Exception when starting wildfly with jacoco agent HOT 7
- Error while instrumenting - ClassTooLargeException
- Regular expression with non-literal value on jacoco report HOT 3
- Unabled to read report because tilde is attached to the extension HOT 1
- Improve filter for try-with-resources
- Spring-boot 3.3.1 upgradation getting Jacoco report generation failing with java.io.EOFException HOT 3
- ArrayIndexOutofBound exception when executing tests with Jmockit framework. HOT 1
- Kotlin functions with reified type parameters should not be filtered out
- Add validation test for exception based control flow in Kotlin
- Add validation test for synthetic accessor methods in Kotlin
- Feature Request: document that the prepare-agent append configuration is true by default
- Missing null branch on when statements
- Filter `when` expression with sealed nullable type where null is the last case
- Add validation test for `finally` in Kotlin
- JaCoCo reporting 50% method coverage for class with only one method HOT 1
- Condition counter for single null object reference is wrong HOT 1
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.