-
-
Notifications
You must be signed in to change notification settings - Fork 403
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 all 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,27 @@ | ||
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" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/domain/builders/HighChartColumnHtmlBuilder.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/domain/Assertions.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/domain/Body.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/domain/QueryParams.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/domain/Request.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/verify/SmartJUnitNavigatorVerification.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/verify/SmartPackagedVerification.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/zzignored/env/EnvVarReader.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/zzignored/mocking/WireMockJsonContentTesting.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/zzignored/trick/JacksonCsv.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/zzignored/trick/JSON2CSV.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/zzignored/trick/LogHello.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/zzignored/trick/NotifierFuncMain.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/zzignored/ZeroCodeException.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/AddService.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/httpclient/ssl/CorporateProxyNoSslContextHttpClient.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/httpclient/ssl/SslTrustCorporateProxyHttpClient.java" | ||
- "zerocode/src/main/java/org/jsmart/zerocode/core/httpclient/ssl/SslTrustHttpClient.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> | ||
|
||
|
This file was deleted.
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.
Pls provide link for live coverage report please. That's the purpose.
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.
Link is not generic one. Once you merge this PR, we need to update this link as per zerocde code coverage report.
e.g. link could be similar to - https://codecov.io/gh/aghorpade/zerocode