pkainulainen / maven-examples Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Thank you for the blog post and the code. I have a small suggestion. The current final name of maven-assembly-plugin
and artifactId of assembly-plugin
sound too much like the actual plugin used maven-assembly-plugin
. If you rename your own artifact and final name to something like say "MyProject", it will be easier to understand things.
Hi,
i am sorry to open a Issues, so I don't find anything to comment ...
Do you have some result for your example of code-coverage-jacoco ... ?!
when I run this and try to show in sonar ... I use : "mvn clean verify -P all-tests sonar:sonar"
or "mvn clean verify -P all-tests jacoco:prepare-agent jacoco:report sonar:sonar"
Do you try this with SonarQube ?!
Regards,
Mortagne
http://www.petrikainulainen.net/programming/maven/creating-code-coverage-reports-for-unit-and-integration-tests-with-the-jacoco-maven-plugin/ looks great and the examples at https://github.com/pkainulainen/maven-examples/blob/master/code-coverage-jacoco/README work fine but https://github.com/pkainulainen/maven-examples/blob/master/code-coverage-jacoco/src/integration-test/java/ITFizzBuzzTest.java doesn't seem like an integration test to me. It instantiates FizzBuzz and calls a method on it. To me an integration test hits a REST API endpoint.
What if ITFizzBuzzTest called into a Jersey API endpoint with https://github.com/jayway/rest-assured ? (See https://github.com/IQSS/dataverse/blob/v4.2.1/src/test/java/edu/harvard/iq/dataverse/api/BuiltinUsersIT.java#L62 for an example). Would Jacoco know which lines of code were executed? If so, that would be fantastic!
I sort of have my doubts, though, since at http://stackoverflow.com/questions/17433046/integration-test-of-rest-apis-with-code-coverage/17436389#17436389 I'm reading that like me they haven't figured out how to get Jacoco to show code coverage from rest-assured tests. Maybe @johanhaleby or @marchof or @theon knows. I hope this makes sense!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.