-
-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISSUE-58 #Codecov configuration to check code coverage #119
base: master
Are you sure you want to change the base?
Changes from 3 commits
a72383d
0e8724f
7fb3bcd
b9d4d58
a146562
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
coverage: | ||
precision: 2 | ||
round: nearest | ||
#range - below minimum range, coverage badge (we'll get to badges in a sec) will be red, and as approching to 100% it will become greener | ||
range: "40...70" | ||
#ignore tag- all files which are not "meant" to be unit-tested, like GUI and constants-files | ||
# so coverage percent won't be reduce by this code. | ||
ignore: | ||
- "zerocode/src/main/java/org/jsmart/zerocode/converter/SoapMocker.java" | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -231,6 +231,21 @@ | |
<target>${java-compiler-target.version}</target> | ||
</configuration> | ||
</plugin> | ||
|
||
<!-- code cov plugin to generate report on code coverage--> | ||
<plugin> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just check, do we need the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to check code coverage on local machine,we will need it in local profile. If there is no need then we can remove it |
||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>cobertura-maven-plugin</artifactId> | ||
<version>2.7</version> | ||
<configuration> | ||
<formats> | ||
<format>html</format> | ||
<format>xml</format> | ||
</formats> | ||
<check /> | ||
</configuration> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
</profile> | ||
|
@@ -315,6 +330,20 @@ | |
<goals>deploy</goals> | ||
</configuration> | ||
</plugin> | ||
<!-- code cov plugin to generate report on code coverage--> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>cobertura-maven-plugin</artifactId> | ||
<version>2.7</version> | ||
<configuration> | ||
<formats> | ||
<format>html</format> | ||
<format>xml</format> | ||
</formats> | ||
<check /> | ||
</configuration> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
More classes like this to be added ie task on me.