Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 309d216

Browse files
authored
Merge pull request #23 from k163377/add_coveradge
Add display coverage.
2 parents 307cae9 + 5e0c5f0 commit 309d216

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#
33
# Check https://circleci.com/docs/2.0/language-java/ for more details
44
#
5-
version: 2
5+
version: 2.1
6+
orbs:
7+
codecov: codecov/codecov@1.0.5
68
jobs:
79
build:
810
docker:
@@ -42,3 +44,5 @@ jobs:
4244
- run: gradle ktlintCheck
4345
# run tests!
4446
- run: gradle test
47+
# upload coverages to codecov
48+
- run: bash <(curl -s https://codecov.io/bash)

README.ja.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
22
[![CircleCI](https://circleci.com/gh/ProjectMapK/KRowMapper.svg?style=svg)](https://circleci.com/gh/ProjectMapK/KRowMapper)
33
[![](https://jitci.com/gh/ProjectMapK/KRowMapper/svg)](https://jitci.com/gh/ProjectMapK/KRowMapper)
4+
[![codecov](https://codecov.io/gh/ProjectMapK/KRowMapper/branch/master/graph/badge.svg)](https://codecov.io/gh/ProjectMapK/KRowMapper)
45

56
KRowMapper
67
====

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
22
[![CircleCI](https://circleci.com/gh/ProjectMapK/KRowMapper.svg?style=svg)](https://circleci.com/gh/ProjectMapK/KRowMapper)
33
[![](https://jitci.com/gh/ProjectMapK/KRowMapper/svg)](https://jitci.com/gh/ProjectMapK/KRowMapper)
4+
[![codecov](https://codecov.io/gh/ProjectMapK/KRowMapper/branch/master/graph/badge.svg)](https://codecov.io/gh/ProjectMapK/KRowMapper)
45

56
---
67

build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
id("java")
44
id("org.jetbrains.kotlin.jvm") version "1.3.72"
55
id("org.jlleitschuh.gradle.ktlint") version "9.2.1"
6+
id("jacoco")
67
}
78

89
group = "com.mapk"
@@ -72,5 +73,15 @@ tasks {
7273
}
7374
test {
7475
useJUnitPlatform()
76+
// テスト終了時にjacocoのレポートを生成する
77+
finalizedBy(jacocoTestReport)
78+
}
79+
80+
jacocoTestReport {
81+
reports {
82+
xml.isEnabled = true
83+
csv.isEnabled = false
84+
html.isEnabled = true
85+
}
7586
}
7687
}

0 commit comments

Comments
 (0)