diff --git a/.travis.yml b/.travis.yml index 8ab447847..86158a26a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,7 @@ sudo: false jdk: - oraclejdk8 +script: "mvn cobertura:cobertura" + +after_success: +- bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 158e78acf..58f2e8c36 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,19 @@ Who uses Zerocode? -------------------- + [HSBC Bank](https://www.hsbc.co.uk/) - MuleSoft APIs Load/Stress aka Performance testing, Consumer Contract testing and E2E Integration Testing + [Home Office(GOV.UK)](https://www.gov.uk/government/organisations/home-office) - Micro-Services Contract Testing, HDFS/Hbase REST end point testing - + +Code Coverage Report +-------------------- +Link to see the coverage : http://please-provide-the-link-here + +using codecov open source tool to generate report for code coverage in unit testing. +How do we integrate it with GitHub? +Sign up in codecov.io via your GitHub account + +Choose the repository you want to apply the coverage for. After applying codecov report will be generated as below +codecov + + ## REST BDD Testing Framework Develop and test applications with TDD and BDD approach while easily building up your regression suites. diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..92b65bde3 --- /dev/null +++ b/codecov.yml @@ -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" diff --git a/pom.xml b/pom.xml index 9556a7d70..06248d432 100644 --- a/pom.xml +++ b/pom.xml @@ -231,6 +231,21 @@ ${java-compiler-target.version} + + + + org.codehaus.mojo + cobertura-maven-plugin + 2.7 + + + html + xml + + + + + @@ -315,6 +330,20 @@ deploy + + + org.codehaus.mojo + cobertura-maven-plugin + 2.7 + + + html + xml + + + + + diff --git a/src/main/java/org/jsmart/zerocode/core/domain/ReportProperties.java b/src/main/java/org/jsmart/zerocode/core/domain/ReportProperties.java deleted file mode 100644 index 7b3d3bc95..000000000 --- a/src/main/java/org/jsmart/zerocode/core/domain/ReportProperties.java +++ /dev/null @@ -1,20 +0,0 @@ -//package org.jsmart.zerocode.core.domain; -// -//import java.lang.annotation.Documented; -//import java.lang.annotation.ElementType; -//import java.lang.annotation.Inherited; -//import java.lang.annotation.Retention; -//import java.lang.annotation.RetentionPolicy; -//import java.lang.annotation.Target; -// -//@Documented -//@Target(ElementType.TYPE) -//@Retention(RetentionPolicy.RUNTIME) -//@Inherited -//public @interface ReportProperties { -// -// boolean searchableReport() default true; -// boolean filterByAuthor() default true; -// boolean spikeReport() default false; -// -//} \ No newline at end of file