{"action":"created","issue":{"url":"https://api.github.com/repos/simpligility/android-maven-plugin/issues/669","labels_url":"https://api.github.com/repos/simpligility/android-maven-plugin/issues/669/labels{/name}","comments_url":"https://api.github.com/repos/simpligility/android-maven-plugin/issues/669/comments","events_url":"https://api.github.com/repos/simpligility/android-maven-plugin/issues/669/events","html_url":"https://github.com/simpligility/android-maven-plugin/issues/669","id":98555986,"number":669,"title":"Allow using \"test source directory\" for integration tests, instead of requiring a new maven project/module","user":{"login":"mitchhentges","id":7784737,"avatar_url":"https://avatars.githubusercontent.com/u/7784737?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchhentges","html_url":"https://github.com/mitchhentges","followers_url":"https://api.github.com/users/mitchhentges/followers","following_url":"https://api.github.com/users/mitchhentges/following{/other_user}","gists_url":"https://api.github.com/users/mitchhentges/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchhentges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchhentges/subscriptions","organizations_url":"https://api.github.com/users/mitchhentges/orgs","repos_url":"https://api.github.com/users/mitchhentges/repos","events_url":"https://api.github.com/users/mitchhentges/events{/privacy}","received_events_url":"https://api.github.com/users/mitchhentges/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-01T19:00:56Z","updated_at":"2015-08-11T16:03:35Z","closed_at":null,"body":"Perhaps I'm missing some documentation, but I can't seem to have my tests in the same project, different source directory.\r\n\r\nWhen doing a gradle project, you throw your main app code in `src/main/java` and put your test sources in `src/androidTest/java`. When `gradle connectedAndroidTest` is run, it builds two apks: once of them just contains the app, the other contains the app and all test sources (this second one is installed on the device and tested)\r\n\r\nWith `android-maven-plugin`, I'm finding that by test sources are never included in any compiled apk, and that I have to create a \"test project\" - another maven project or module. This _works_, but it's less convenient"},"comment":{"url":"https://api.github.com/repos/simpligility/android-maven-plugin/issues/comments/129948535","html_url":"https://github.com/simpligility/android-maven-plugin/issues/669#issuecomment-129948535","issue_url":"https://api.github.com/repos/simpligility/android-maven-plugin/issues/669","id":129948535,"user":{"login":"mosabua","id":145658,"avatar_url":"https://avatars.githubusercontent.com/u/145658?v=3","gravatar_id":"","url":"https://api.github.com/users/mosabua","html_url":"https://github.com/mosabua","followers_url":"https://api.github.com/users/mosabua/followers","following_url":"https://api.github.com/users/mosabua/following{/other_user}","gists_url":"https://api.github.com/users/mosabua/gists{/gist_id}","starred_url":"https://api.github.com/users/mosabua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosabua/subscriptions","organizations_url":"https://api.github.com/users/mosabua/orgs","repos_url":"https://api.github.com/users/mosabua/repos","events_url":"https://api.github.com/users/mosabua/events{/privacy}","received_events_url":"https://api.github.com/users/mosabua/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T16:03:35Z","updated_at":"2015-08-11T16:03:35Z","body":"The Android Maven Plugin does not work with tests in src/test/java since the Maven Surefire Plugin uses those. It might be worth looking into support something like src/androidTest/java and then run the tests somehow via the Android Maven Plugin. Care to investigate and send a pull requests @mitchhentges ? \r\n\r\nOtherwise the typical integration tests are done in a separate project as usual and as visible in the example projects... "}}