From 6c01aff15afd7b39a4b1fb93dbd8f4e3668bb7e7 Mon Sep 17 00:00:00 2001 From: g4s8 Date: Thu, 25 May 2017 23:50:23 +0400 Subject: [PATCH] Test coverage --- .travis.yml | 2 ++ README.md | 1 + pom.xml | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/.travis.yml b/.travis.yml index cb342eb658..1f8e9d15e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,3 +13,5 @@ env: - JAVA_OPTS="-Xmx256m" jdk: - oraclejdk8 +after_success: + - "bash <(curl -s https://codecov.io/bash)" diff --git a/README.md b/README.md index 2237b9024f..92e7985759 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![Build Status](https://travis-ci.org/yegor256/cactoos.svg?branch=master)](https://travis-ci.org/yegor256/cactoos) [![PDD status](http://www.0pdd.com/svg?name=yegor256/cactoos)](http://www.0pdd.com/p?name=yegor256/cactoos) +[![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/cactoos.svg?style=flat-square)](https://codecov.io/github/yegor256/cactoos?branch=master) [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/takes/blob/master/LICENSE.txt) Cactoos is a collection of object-oriented Java primitives. diff --git a/pom.xml b/pom.xml index 0b1318872b..4b6b638e65 100644 --- a/pom.xml +++ b/pom.xml @@ -119,6 +119,29 @@ + + org.jacoco + jacoco-maven-plugin + 0.7.8 + + file + + + + jacoco-initialize + + prepare-agent + + + + jacoco-site + install + + report + + + +