Comments (1)
After the clone of https://github.com/sdeleuze/spring-boot-kotlin-demo/ at commit 1d441fe508fe82e831e2ebeabefa4765edd4e803
execution of
cat <<END > build.gradle.kts
val bootRun: org.springframework.boot.gradle.tasks.run.BootRun by tasks
bootRun.apply {
jvmArgs = listOf(
"-javaagent:${project.projectDir.absolutePath}/jacoco-0.8.10/lib/jacocoagent.jar=output=tcpserver,port=6300"
)
}
END
wget "https://repo1.maven.org/maven2/org/jacoco/jacoco/0.8.10/jacoco-0.8.10.zip"
unzip -d jacoco-0.8.10 jacoco-0.8.10.zip
./gradlew bootRun
and then in another terminal
java -jar jacoco-0.8.10/lib/jacococli.jar dump --port 6300 --reset --destfile test
java -jar jacoco-0.8.10/lib/jacococli.jar report test --html test.html --classfiles build/classes/kotlin/main/
produces the following output
[INFO] Connecting to localhost/127.0.0.1:6300.
[INFO] Writing execution data to /private/tmp/spring-boot-kotlin-demo/test.
[INFO] Loading execution data file /private/tmp/spring-boot-kotlin-demo/test.
[INFO] Analyzing 5 classes.
and the following report
![Screenshot 2023-10-12 at 12 03 12](https://private-user-images.githubusercontent.com/138671/274562398-63434828-63a5-4b11-8158-9c2cb8d63106.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDA4ODgzNjksIm5iZiI6MTcwMDg4ODA2OSwicGF0aCI6Ii8xMzg2NzEvMjc0NTYyMzk4LTYzNDM0ODI4LTYzYTUtNGIxMS04MTU4LTljMmNiOGQ2MzEwNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBSVdOSllBWDRDU1ZFSDUzQSUyRjIwMjMxMTI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDIzMTEyNVQwNDU0MjlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNjhmODJmMTYxMzVmMjA3YzI0ZWVhMzAwNWQxZDg5YTdmYzc2ZDJhZTBiMjkxOWEwYjNhNTA0M2JkZjJiYjlhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.3LvZ4HiMuy1kRgSh65GzqxlSUqpVNb-9KvJRmC8hqb0)
from jacoco.
Related Issues (20)
- Why does Jacoco report for my Kotlin data class getter has a postfix? The property name is radius, but in the report the getter is shown as getRadius-ZnsFY2o().
- when i exxcuted connectedAndroidTest PCOVERAGE_ENABLE=true , it failed, Execution failed for task ':playground:jacocoCommonDebug'. > A failure occurred while executing com.android.build.gradle.internal.tasks.JacocoTask$InstrumentJarAction > Unable to instrument file with Jacoco: /Users/...debug/58.jar HOT 4
- Jacoco includes coverage of pattern switch exception paths which may not be possible to cover. HOT 2
- Publish version 0.8.11 HOT 1
- Update to ASM 9.6 HOT 6
- Reports contain invalid line="0" when using flatMapLatest() and combine() Kotlin coroutines functions HOT 5
- Option to inline CSS and JS code into HTML code coverage reports HOT 3
- Update `KotlinInlineFilter` for `crossinline`
- A documentation is missing explaining how to create an aggregated maven site report HOT 6
- jacococli get error that Invalid execution data file while reporting HOT 4
- java.lang.NoClassDefFoundError while instrumenting
- Partial branch coverage being shown on exhaustive switch expressions HOT 1
- `report-aggregate` should be able to generate report for modules with same artifactId
- For My Android Project - I am using Kotlin('1.8.20') and Java Version17 and Gradle version 8.0 In my code i am accessing the Jacoco Agent and Jacoco Core using classpath 'org.jacoco:org.jacoco.core in Object agent = Class.forName("org.jacoco.agent.rt.RT") .getMethod("getAgent") .invoke(null);:0.8.8' classpath "org.jacoco:org.jacoco.agent:0.8.8:runtime" but i am getting the java.lang.reflect.InvocationTargetException in
- Branch coverage calculation error!!!! HOT 1
- Class can not be reRead by JDK ClassReader after jacoco transformed in JDK11 HOT 1
- Aspect method invoking chain doesn't have right coverage data HOT 3
- Send Jacoco coverage file to S3 Bucket without stopping JVM from AWS Lambda HOT 1
- Kotlin companion object variables being covered as methods
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.