Skip to content

Commit

Permalink
Add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
aesy committed Jun 15, 2020
1 parent f5b07e9 commit 0671b2d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up environment
uses: actions/setup-java@v1
with:
java-version: ${{java-version}}
java-version: ${{ matrix.java-version }}
- name: Build with Gradle
run: ./gradlew buildPlugin
test:
Expand All @@ -32,3 +32,7 @@ jobs:
java-version: 11
- name: Test with Gradle
run: ./gradlew test --info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: build/reports/jacoco/test/jacocoTestReport.xml
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This plugin adds an intention to open regular expressions on regex101.com
[![Plugin downloads](https://img.shields.io/jetbrains/plugin/d/14461-open-regex101?style=flat-square)](https://plugins.jetbrains.com/plugin/14461-open-regex101)
[![Plugin stars](https://img.shields.io/jetbrains/plugin/r/stars/14461-open-regex101?style=flat-square)](https://plugins.jetbrains.com/plugin/14461-open-regex101)
[![Build status](https://img.shields.io/github/workflow/status/aesy/regex101-intellij/Continous%20Integration?style=flat-square)](https://github.com/aesy/regex101-intellij/actions)
[![Test coverage](https://img.shields.io/codecov/c/github/aesy/regex101-intellij?style=flat-square)](https://codecov.io/github/aesy/regex101-intellij)
[![MIT license](https://img.shields.io/github/license/aesy/regex101-intellij.svg?style=flat-square)](https://github.com/aesy/regex101-intellij/blob/master/LICENSE)

## Installation
Expand Down
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import org.jetbrains.intellij.tasks.*
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
jacoco
kotlin("jvm") version "1.3.61"
id("org.jetbrains.intellij") version "0.4.21"
}
Expand Down Expand Up @@ -30,6 +31,12 @@ intellij {
}

tasks {
jacocoTestReport {
reports {
xml.isEnabled = true
}
}

withType<Wrapper> {
gradleVersion = "6.5"
}
Expand All @@ -47,6 +54,7 @@ tasks {

withType<Test> {
useJUnitPlatform()
finalizedBy(jacocoTestReport)
}

withType<PublishTask> {
Expand Down

0 comments on commit 0671b2d

Please sign in to comment.