{"action":"created","issue":{"url":"https://api.github.com/repos/stanfy/spoon-gradle-plugin/issues/76","labels_url":"https://api.github.com/repos/stanfy/spoon-gradle-plugin/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/stanfy/spoon-gradle-plugin/issues/76/comments","events_url":"https://api.github.com/repos/stanfy/spoon-gradle-plugin/issues/76/events","html_url":"https://github.com/stanfy/spoon-gradle-plugin/issues/76","id":110001285,"number":76,"title":"Logs are empty when using Spoon gradle with Robotium","user":{"login":"rafaelaazevedo","id":4616919,"avatar_url":"https://avatars.githubusercontent.com/u/4616919?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelaazevedo","html_url":"https://github.com/rafaelaazevedo","followers_url":"https://api.github.com/users/rafaelaazevedo/followers","following_url":"https://api.github.com/users/rafaelaazevedo/following{/other_user}","gists_url":"https://api.github.com/users/rafaelaazevedo/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelaazevedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelaazevedo/subscriptions","organizations_url":"https://api.github.com/users/rafaelaazevedo/orgs","repos_url":"https://api.github.com/users/rafaelaazevedo/repos","events_url":"https://api.github.com/users/rafaelaazevedo/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelaazevedo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-06T12:52:29Z","updated_at":"2015-10-21T21:08:02Z","closed_at":null,"body":"I am using spoon gradle with robotium and cucumber and I can take the screenshots and see on the report, but the logs are completely empty. \r\n\r\nMy Build.gradle:\r\n\r\n classpath('com.stanfy.spoon:spoon-gradle-plugin:1.0.3') {\r\n  exclude module: 'guava'\r\n  }\r\n\r\n classpath 'com.squareup.spoon:spoon-runner:1.2.0'\r\nMy app-build.gradle:\r\n\r\ndependencies{\r\n androidTestCompile 'com.squareup.spoon:spoon-client:1.2.0'\r\n androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.5.1'\r\n}\r\n\r\nspoon {\r\n debug = true\r\n if (project.hasProperty('spoonFailNoConnectedDevice')) {\r\n    failIfNoDeviceConnected = true\r\n }\r\n\r\n if (project.hasProperty('cucumberOptions')) {\r\n    instrumentationArgs = [\"cucumberOptions=\" + \"'${project.cucumberOptions}'\"]\r\n }\r\n\r\n}\r\nI am running through commandline, the command is:\r\n\r\ngradle spoon -PspoonFailNoConnectedDevice -PcucumberOptions='--tags @smoke'\r\nMy instrumentation runner:\r\n\r\npublic class Instrumentation extends CucumberInstrumentation {\r\n@Override\r\npublic void onStart() {\r\n    runOnMainSync(new Runnable() {\r\n        @Override\r\n        public void run() {\r\n            Application app = (Application) getTargetContext().getApplicationContext();\r\n            String simpleName = Instrumentation.class.getSimpleName();\r\n\r\n            // Unlock the device so that the tests can input keystrokes.\r\n            ((KeyguardManager) app.getSystemService(KEYGUARD_SERVICE)) //\r\n                .newKeyguardLock(simpleName) //\r\n                .disableKeyguard();\r\n            // Wake up the screen.\r\n            ((PowerManager) app.getSystemService(POWER_SERVICE)) //\r\n                .newWakeLock(FULL_WAKE_LOCK | ACQUIRE_CAUSES_WAKEUP | ON_AFTER_RELEASE, simpleName) //\r\n                .acquire();\r\n        }\r\n    });\r\n\r\n    super.onStart();\r\n}\r\n\r\n}\r\n\r\nThank you !\r\n"},"comment":{"url":"https://api.github.com/repos/stanfy/spoon-gradle-plugin/issues/comments/150024574","html_url":"https://github.com/stanfy/spoon-gradle-plugin/issues/76#issuecomment-150024574","issue_url":"https://api.github.com/repos/stanfy/spoon-gradle-plugin/issues/76","id":150024574,"user":{"login":"rafaelaazevedo","id":4616919,"avatar_url":"https://avatars.githubusercontent.com/u/4616919?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelaazevedo","html_url":"https://github.com/rafaelaazevedo","followers_url":"https://api.github.com/users/rafaelaazevedo/followers","following_url":"https://api.github.com/users/rafaelaazevedo/following{/other_user}","gists_url":"https://api.github.com/users/rafaelaazevedo/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelaazevedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelaazevedo/subscriptions","organizations_url":"https://api.github.com/users/rafaelaazevedo/orgs","repos_url":"https://api.github.com/users/rafaelaazevedo/repos","events_url":"https://api.github.com/users/rafaelaazevedo/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelaazevedo/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T21:08:02Z","updated_at":"2015-10-21T21:08:02Z","body":"nobody to comment this issue ?"}}