From 5bd073e05ce271737462d1c3a83466793c5ce341 Mon Sep 17 00:00:00 2001 From: wrongwrong Date: Sat, 4 Jul 2020 15:28:15 +0900 Subject: [PATCH 1/3] =?UTF-8?q?jacoco=E5=91=A8=E3=82=8A=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 38e7e84..6eaf23a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,6 +4,7 @@ plugins { id("org.jetbrains.kotlin.jvm") version "1.3.72" // その他補助系 id("org.jlleitschuh.gradle.ktlint") version "9.2.1" + id("jacoco") id("com.github.ben-manes.versions") version "0.28.0" } @@ -60,5 +61,15 @@ tasks { } test { useJUnitPlatform() + // テスト終了時にjacocoのレポートを生成する + finalizedBy(jacocoTestReport) + } + + jacocoTestReport { + reports { + xml.isEnabled = true + csv.isEnabled = false + html.isEnabled = true + } } } From 3b4f35208f360636e083fb2d0d230e6b2524272f Mon Sep 17 00:00:00 2001 From: wrongwrong Date: Sat, 4 Jul 2020 15:29:18 +0900 Subject: [PATCH 2/3] =?UTF-8?q?codecov=E3=81=B8=E3=81=AE=E3=82=A2=E3=83=83?= =?UTF-8?q?=E3=83=97=E3=83=AD=E3=83=BC=E3=83=89=E8=A8=AD=E5=AE=9A=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 254703b..6c3ac5d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,9 @@ # # Check https://circleci.com/docs/2.0/language-java/ for more details # -version: 2 +version: 2.1 +orbs: + codecov: codecov/codecov@1.0.5 jobs: build: docker: @@ -42,3 +44,5 @@ jobs: - run: gradle ktlintCheck # run tests! - run: gradle test + # upload coverages to codecov + - run: bash <(curl -s https://codecov.io/bash) From 7e3f0992c0c3dd3047f868da2b0d25b12403bac0 Mon Sep 17 00:00:00 2001 From: wrongwrong Date: Sat, 4 Jul 2020 15:29:47 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=E3=83=90=E3=83=83=E3=82=B8=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 31e6cc4..fca6a95 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![CircleCI](https://circleci.com/gh/ProjectMapK/KMapper.svg?style=svg)](https://circleci.com/gh/ProjectMapK/KMapper) [![](https://jitci.com/gh/ProjectMapK/KMapper/svg)](https://jitci.com/gh/ProjectMapK/KMapper) +[![codecov](https://codecov.io/gh/ProjectMapK/KMapper/branch/master/graph/badge.svg)](https://codecov.io/gh/ProjectMapK/KMapper) KMapper ====