{"id":33146980,"url":"https://github.com/evant/android-studio-unit-test-plugin","last_synced_at":"2025-11-20T07:02:35.738Z","repository":{"id":57736724,"uuid":"20607727","full_name":"evant/android-studio-unit-test-plugin","owner":"evant","description":"[Deprecated] Android Studio IDE support for Android gradle unit tests. Prepared for Robolectric.","archived":true,"fork":false,"pushed_at":"2017-08-26T08:40:32.000Z","size":7646,"stargazers_count":235,"open_issues_count":8,"forks_count":18,"subscribers_count":13,"default_branch":"master","last_synced_at":"2023-11-07T15:36:55.103Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-08T02:43:35.000Z","updated_at":"2023-11-07T15:36:55.103Z","dependencies_parsed_at":"2022-08-24T02:51:13.648Z","dependency_job_id":null,"html_url":"https://github.com/evant/android-studio-unit-test-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/evant/android-studio-unit-test-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evant%2Fandroid-studio-unit-test-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evant%2Fandroid-studio-unit-test-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evant%2Fandroid-studio-unit-test-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evant%2Fandroid-studio-unit-test-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evant","download_url":"https://codeload.github.com/evant/android-studio-unit-test-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evant%2Fandroid-studio-unit-test-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285389437,"owners_count":27163377,"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-11-20T02:00:05.334Z","response_time":54,"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":"2025-11-15T13:00:40.319Z","updated_at":"2025-11-20T07:02:35.729Z","avatar_url":"https://github.com/evant.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Plugin\"\u003e\u003c/A\u003ePlugin"],"readme":"#[Deprecated]\nGoogle has finally released a [proper solution](http://tools.android.com/tech-docs/unit-testing-support) for unit testing. Therefore this plugin will no longer be activlty maintained.\n\nandroid-studio-unit-test-plugin\n===============================\n\nAndroid Studio (and Intellij 14) IDE support for Android gradle [unit tests](https://github.com/JCAndKSolutions/android-unit-test).\n\nThis plugin will mark test directories and resolve `testCompile` dependencies. It also sets up the correct system properties so that Robolectric will work if you are using it.\n\n![alt tag](https://raw.githubusercontent.com/evant/android-studio-unit-test-plugin/master/screenshots/idea.png)\n\n### Requirements\n* Android Studio `0.6.0+`\n* Android Gradle Plugin `0.11.0+`\n* JCAndKSolutions' [android-unit-test](https://github.com/JCAndKSolutions/android-unit-test) gradle plugin `1.5.0+`\n\n## Install IDE the plugin\nIn Android Studio go to `Settings -\u003e Plugins -\u003e Browse Repositories...` and search for 'Android Studio Unit Test'.\n\nIf you feel like living on the edge, can download the [zip](https://github.com/evant/android-studio-unit-test-plugin/blob/master/AndroidStudioUnitTestPlugin.zip?raw=true) then go to `Settings -\u003e Plugins -\u003e Install plugin from disk..` to install.\n\n## Install the gradle plugin\nTo add unit testing support to your gradle project, you need JCAndKSolutions' android-unit-test gradle plugin.\nYou need to set it up as described in the [README](https://github.com/JCAndKSolutions/android-unit-test).\nMake sure you have at least version `1.5.0`.\n\n## Troubleshooting\n\n* Running tests from the IDE gives a `ClassNotFoundException` or something similar.\n\n**If you are running Android Stuido `0.8.9+`**.\nThe latest version of this plugin will compile your test classes before running the test. However, the very first\ntime you run them after they have been cleaned, you will still get this error. Simply attempting to run again will fix it\nand any subsiquent runs will work correctly.\n\n**If you are running intellij or and older version of Android Studio**.\nIf your app includes a library project `compile project(\":myLib\")` then the JUnit test runner will attempt to run `testClasses` on that project. Since it doesn't have that task it will fail and your test classes will not be generated. To fix, add the needed task to your library project.\n\n```groovy\ntask testClasses {}\n```\n\n* The relative path for Robolectric's `@Config(manifest = \"path\")` is different between gradle and Android Studio.\n\n  This is because when creating a run configuration, the path is by default relative to your project root, whereas when running it from gradle it's correctly relative to your apps root. To fix, edit the JUnit run configuration and change `Working Directory` to point to your app root.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevant%2Fandroid-studio-unit-test-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevant%2Fandroid-studio-unit-test-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevant%2Fandroid-studio-unit-test-plugin/lists"}