Skip to content

Commit

Permalink
mark integration as tests in IDE, include integration coverage in jac…
Browse files Browse the repository at this point in the history
…oco (#810)
  • Loading branch information
bgalek authored Sep 3, 2024
1 parent ad121c1 commit 8e56cba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ axion-release-plugin
*gradle release and version management plugin*

[![Build Status](https://github.com/allegro/axion-release-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/allegro/axion-release-plugin/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/allegro/axion-release-plugin/badge.svg?branch=development)](https://coveralls.io/r/allegro/axion-release-plugin)
[![readthedocs](https://readthedocs.org/projects/axion-release-plugin/badge/?version=latest) ](http://axion-release-plugin.readthedocs.org/en/latest/)
![Maven Central](https://img.shields.io/maven-central/v/pl.allegro.tech.build/axion-release-plugin)
[![Gradle Plugin Portal](https://img.shields.io/gradle-plugin-portal/v/pl.allegro.tech.build.axion-release?versionPrefix=1.1)](https://plugins.gradle.org/plugin/pl.allegro.tech.build.axion-release)
Expand Down
19 changes: 13 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ plugins {
`maven-publish`
signing
jacoco
idea
id("pl.allegro.tech.build.axion-release") version "1.18.7"
id("com.github.kt3k.coveralls") version "2.12.2"
id("com.gradle.plugin-publish") version "1.2.2"
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
id("com.coditory.integration-test") version "1.4.5"
Expand Down Expand Up @@ -60,7 +60,7 @@ dependencies {
runtimeOnly("org.eclipse.jgit:org.eclipse.jgit.gpg.bc:$jgitVersion")

implementation("org.eclipse.jgit:org.eclipse.jgit:$jgitVersion")
implementation("org.eclipse.jgit:org.eclipse.jgit.ssh.jsch:$jgitVersion") {
implementation("org.eclipse.jgit:org.eclipse.jgit.ssh.jsch:$jgitVersion") {
exclude("com.jcraft", "jsch")
}
implementation("com.github.mwiede:jsch:$jschVersion")
Expand Down Expand Up @@ -112,13 +112,13 @@ tasks {
reports {
xml.required.set(true)
}
executionData(
file("${layout.buildDirectory.asFile.get()}/jacoco/test.exec"),
file("${layout.buildDirectory.asFile.get()}/jacoco/integrationTest.exec"),
)
}
}

jacoco {
toolVersion = "0.8.2"
}

gradlePlugin {
testSourceSets(sourceSets.integration.get())
plugins {
Expand Down Expand Up @@ -193,3 +193,10 @@ signing {
)
sign(publishing.publications)
}

idea {
module {
testSourceDirs = testSourceDirs + sourceSets.integration.get().allSource.srcDirs
testResourceDirs = testResourceDirs + sourceSets.integration.get().resources.srcDirs
}
}

0 comments on commit 8e56cba

Please sign in to comment.