{"id":43786127,"url":"https://github.com/coditory/gradle-integration-test-plugin","last_synced_at":"2026-02-05T19:04:06.266Z","repository":{"id":42516704,"uuid":"166584842","full_name":"coditory/gradle-integration-test-plugin","owner":"coditory","description":"Gradle plugin with integrationTest task","archived":false,"fork":false,"pushed_at":"2025-09-10T15:14:33.000Z","size":570,"stargazers_count":91,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-10T19:35:50.673Z","etag":null,"topics":["gradle","gradle-plugin","hacktoberfest","integration-testing","testing"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coditory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["coditory"]}},"created_at":"2019-01-19T19:27:30.000Z","updated_at":"2025-09-10T15:12:17.000Z","dependencies_parsed_at":"2023-02-16T08:45:29.635Z","dependency_job_id":"c001391c-e67b-4d4a-931d-2558d5697f77","html_url":"https://github.com/coditory/gradle-integration-test-plugin","commit_stats":null,"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"purl":"pkg:github/coditory/gradle-integration-test-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-integration-test-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-integration-test-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-integration-test-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-integration-test-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coditory","download_url":"https://codeload.github.com/coditory/gradle-integration-test-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditory%2Fgradle-integration-test-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29130113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T18:55:47.139Z","status":"ssl_error","status_checked_at":"2026-02-05T18:55:04.010Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gradle","gradle-plugin","hacktoberfest","integration-testing","testing"],"created_at":"2026-02-05T19:04:06.208Z","updated_at":"2026-02-05T19:04:06.261Z","avatar_url":"https://github.com/coditory.png","language":"Kotlin","readme":"# Integration Test Gradle Plugin\n\n[![Build](https://github.com/coditory/gradle-integration-test-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/coditory/gradle-integration-test-plugin/actions/workflows/build.yml)\n[![Coverage](https://codecov.io/gh/coditory/gradle-integration-test-plugin/branch/main/graph/badge.svg)](https://codecov.io/gh/coditory/gradle-integration-test-plugin)\n[![Gradle Plugin Portal](https://img.shields.io/gradle-plugin-portal/v/com.coditory.integration-test)](https://plugins.gradle.org/plugin/com.coditory.integration-test)\n\n\u003e Single line in build.gradle.kts to enable integration tests in JVM projects\n\n**Zero configuration**, **single responsibility** gradle plugin for integration tests.\n\n- Adds `integrationTest` task that executes tests under `src/integration/*`.\n- Adds `testAll` task that executes tests under `src/test/*` and `src/integration/*`.\n- Handles flags parameters to skip tests `skipTest`, `skipIntegrationTest`, `skipUnitTest`.\n- Makes integration classpath extend test classpath and main classpath (in this order).\n- Makes sure IntelliJ idea treats `src/integration/*` as test sources.\n- Exposes kotlin internal scope (from main and test module) to integration tests.\n- Integrates with test coverage tools like [Jacoco](https://docs.gradle.org/current/userguide/jacoco_plugin.html)\n  and [Kover](https://github.com/Kotlin/kotlinx-kover).\n- Integrates with test frameworks like [JUnit5](https://junit.org/junit5/), [Spock](https://spockframework.org/) and\n  [Kotest](https://kotest.io/).\n- Compatible with [gradle configuration cache](https://docs.gradle.org/current/userguide/configuration_cache.html)\n  and [lazy task configuration](https://docs.gradle.org/current/userguide/lazy_configuration.html).\n\n## Using the plugin\n\nUpdate `build.gradle.kts`\n\n```gradle\nplugins {\n  id(\"com.coditory.integration-test\") version \"2.2.5\"\n}\n\ndependencies {\n  integrationImplementation(...)\n}\n```\n\nAdd integration tests under `src/integration`. That's it!\n\nThere are more details below but the rest is quite obvious as it suppose to be.\n\n### Sample usages with different test frameworks\n\nSee a [project](https://github.com/coditory/gradle-integration-test-plugin-sample) with all the examples.\n\n\u003cdetails\u003e\u003csummary\u003eJava + JUnit5 (\u003ca href=\"https://github.com/coditory/gradle-integration-test-plugin-sample/tree/master/java-junit5\"\u003eproject\u003c/a\u003e)\u003c/summary\u003e\n\u003cp\u003e\n\n```gradle\n// build.gradle.kts\nplugins {\n    id(\"java\")\n    id(\"com.coditory.integration-test\") version \"2.2.5\"\n}\n\ndependencies {\n    testImplementation(\"org.junit.jupiter:junit-jupiter-api:5.11.0\")\n    testRuntime(\"org.junit.jupiter:junit-jupiter-engine:5.11.0\")\n}\n\ntasks.withType\u003cTest\u003e {\n    useJUnitPlatform()\n}\n```\n\n\u003c/p\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\u003csummary\u003eGroovy + Spock (\u003ca href=\"https://github.com/coditory/gradle-integration-test-plugin-sample/tree/master/groovy-spock\"\u003eproject\u003c/a\u003e)\u003c/summary\u003e\n\u003cp\u003e\n\n```gradle\n// build.gradle\nplugins {\n    id \"groovy\"\n    id \"com.coditory.integration-test\" version \"2.2.5\"\n}\n\ndependencies {\n    testCompile \"org.spockframework:spock-core:2.4-M4-groovy-4.0\"\n}\n\ntasks.withType(Test) {\n    useJUnitPlatform()\n}\n```\n\n\u003c/p\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\u003csummary\u003eKotlin + JUnit5 (\u003ca href=\"https://github.com/coditory/gradle-integration-test-plugin-sample/tree/master/kotlin-junit5\"\u003eproject\u003c/a\u003e)\u003c/summary\u003e\n\u003cp\u003e\n\n```gradle\n// build.gradle.kts\nplugins {\n    kotlin(\"jvm\") version \"2.0.21\"\n    id(\"com.coditory.integration-test\") version \"2.2.5\"\n}\n\ndependencies {\n    testImplementation(\"org.junit.jupiter:junit-jupiter-api:5.11.3\")\n    testRuntimeOnly(\"org.junit.jupiter:junit-jupiter-engine:5.11.3\")\n}\n\ntasks.withType\u003cTest\u003e {\n    useJUnitPlatform()\n}\n```\n\n\u003c/p\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\u003csummary\u003eKotlin + Kotest (\u003ca href=\"https://github.com/coditory/gradle-integration-test-plugin-sample/tree/master/kotlin-kotest\"\u003eproject\u003c/a\u003e)\u003c/summary\u003e\n\u003cp\u003e\n\n```gradle\n// build.gradle.kts\nplugins {\n    kotlin(\"jvm\") version \"2.0.21\"\n    id(\"com.coditory.integration-test\") version \"2.2.5\"\n}\n\ndependencies {\n    testImplementation(\"org.junit.jupiter:junit-jupiter-api:5.11.3\")\n    testRuntime(\"org.junit.jupiter:junit-jupiter-engine:5.11.3\")\n    testImplementation(\"io.kotest:kotest-runner-junit5:5.9.1\")\n}\n\ntasks.withType\u003cTest\u003e {\n    useJUnitPlatform()\n}\n```\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n## Usage\n\nRunning tests:\n\n```sh\n# Runs tests from /src/test\n./gradlew test\n\n# Runs tests /src/integration\n./gradlew integrationTest\n./gradlew iT\n\n# Runs all tests (/src/test and /src/integration)\n./gradlew testAll\n./gradlew tA\n```\n\nSkipping tests:\n\n```sh\n# Skip all tests\n./gradlew clean build -x test integrationTest\n# ...or skipTests=true/false\n./gradlew clean build -PskipTest\n\n# Skip tests from /src/test\n./gradlew clean build -x test\n# ...or skipUnitTests=true/false\n./gradlew clean build -PskipUnitTest\n\n# Skip tests from /src/integration\n./gradlew clean build -x integrationTest\n# ...or skipIntegrationTests=true/false\n./gradlew clean build -PskipIntegrationTest\n```\n\n[Test filtering](https://docs.gradle.org/current/userguide/java_testing.html#test_filtering) is supported as well:\n\n```sh\n./gradlew iT --tests com.coditory.SampleTest.shouldWork\n```\n\n## The no-plugin alternative\n\nIf you're against adding plugins to your build file, simply copy-paste the configuration from:\n\n- [Java + Junit5 (no plugin)](https://github.com/coditory/gradle-integration-test-plugin-sample/tree/master/java-junit5-no-plugin/build.gradle)\n- [Kotlin + Junit5 (no plugin)](https://github.com/coditory/gradle-integration-test-plugin-sample/tree/master/kotlin-junit5-no-plugin/build.gradle.kts)\n\n...though mind the boilerplate\n\n## Migrating from 1.x.x to 2.x.x\n\n- Skipping flags changed names. Use `skipTests`, `skipUnitTests`, `skipIntegrationTests`\n  instead of `skipTest`, `skipUnitTest`, `skipIntegrationTest`.\n- Added integration with Jacoco - coverage from integration tests is automatically included in report.\n- Integration with JUnit4 is dropped.\n","funding_links":["https://github.com/sponsors/coditory"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditory%2Fgradle-integration-test-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoditory%2Fgradle-integration-test-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditory%2Fgradle-integration-test-plugin/lists"}