{"id":18701904,"url":"https://github.com/sunnydaydev/test-impact-plugin","last_synced_at":"2025-08-31T11:31:04.331Z","repository":{"id":163224133,"uuid":"638632486","full_name":"SunnyDayDev/test-impact-plugin","owner":"SunnyDayDev","description":"Plugin for running tests based on impact analysis of changes","archived":false,"fork":false,"pushed_at":"2024-11-22T03:51:05.000Z","size":92,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T18:23:46.157Z","etag":null,"topics":[],"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/SunnyDayDev.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-09T19:07:13.000Z","updated_at":"2025-03-04T04:15:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee19935a-cb5c-4f05-b5fa-aa54743cb986","html_url":"https://github.com/SunnyDayDev/test-impact-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SunnyDayDev/test-impact-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SunnyDayDev%2Ftest-impact-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SunnyDayDev%2Ftest-impact-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SunnyDayDev%2Ftest-impact-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SunnyDayDev%2Ftest-impact-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SunnyDayDev","download_url":"https://codeload.github.com/SunnyDayDev/test-impact-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SunnyDayDev%2Ftest-impact-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272973099,"owners_count":25024448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-07T11:42:59.402Z","updated_at":"2025-08-31T11:31:04.040Z","avatar_url":"https://github.com/SunnyDayDev.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://jitpack.io/v/dev.sunnyday/test-impact-plugin.svg)](https://jitpack.io/#dev.sunnyday/test-impact-plugin)\n\n# test-impact-plugin\nPlugin for running tests based on impact analysis of changes.\n\n# Integration\n```kotlin\n// settings.gradle.kts\n\npluginManagement {\n    repositories {\n        maven { url = uri(\"https://jitpack.io\" )}\n        // ...\n    }\n}\n```\n\n```kotlin\n// build.gradle.kts\n\nplugins {\n    id(\"dev.sunnyday.test-impact-plugin\")\n}\n\ntestImpact {\n    // Later, predefined providers will be added here, such as androidTests(\"buildType\"...)\n    testTaskNameProvider = TestTaskNameProvider {\n        listOf(\"test\")\n    }\n    \n    // Later, predefined sources will be added here, such as git diff\n    changesSource = ChangesSource {\n        listOf(\n            \"subproject/src/main/kotlin/some/package/SomeClass.kt\",\n        )\n    }\n}\n```\n\n# Execution\nCurrently testImpact requires to be a start task to run properly, otherwise it will be ignored.\nTo run all the affected tests, simply run the task, and when it completes, the tasks specified in `testTaskNameProvider` will run.\n```bash\n./gradlew testImpact\n```\n\nTo run the specified tests if they are affected, run the tests after the testImpact task.\n```bash\n./gradlew testImpact :subproject:test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunnydaydev%2Ftest-impact-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunnydaydev%2Ftest-impact-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunnydaydev%2Ftest-impact-plugin/lists"}