{"action":"created","issue":{"url":"https://api.github.com/repos/scoverage/gradle-scoverage/issues/64","repository_url":"https://api.github.com/repos/scoverage/gradle-scoverage","labels_url":"https://api.github.com/repos/scoverage/gradle-scoverage/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/scoverage/gradle-scoverage/issues/64/comments","events_url":"https://api.github.com/repos/scoverage/gradle-scoverage/issues/64/events","html_url":"https://github.com/scoverage/gradle-scoverage/issues/64","id":274699298,"number":64,"title":"gradle scoverage skipping reportScoverage","user":{"login":"knarayanan88","id":895396,"avatar_url":"https://avatars1.githubusercontent.com/u/895396?v=4","gravatar_id":"","url":"https://api.github.com/users/knarayanan88","html_url":"https://github.com/knarayanan88","followers_url":"https://api.github.com/users/knarayanan88/followers","following_url":"https://api.github.com/users/knarayanan88/following{/other_user}","gists_url":"https://api.github.com/users/knarayanan88/gists{/gist_id}","starred_url":"https://api.github.com/users/knarayanan88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knarayanan88/subscriptions","organizations_url":"https://api.github.com/users/knarayanan88/orgs","repos_url":"https://api.github.com/users/knarayanan88/repos","events_url":"https://api.github.com/users/knarayanan88/events{/privacy}","received_events_url":"https://api.github.com/users/knarayanan88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":29,"created_at":"2017-11-16T23:22:36Z","updated_at":"2017-11-20T18:27:05Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nWe have a multi-module gradle scala project. I have multiple modules like \r\n\r\n    core/src/main/scala\r\n    core/src/main/java\r\n    core/src/test/scala\r\n    core/src/test/java\r\n    core/build.gradle\r\n    common/...\r\n    integration-tests/...\r\n    build.gradle\r\n\r\nI am trying to generate scoverage report using ./gradlew :core:test :core:reportScoverage, but it ends up running all the tests in core module but SKIPS the reportScoverage step and does not produce the directory \r\n`core/build/reports/scoverage`\r\n\r\n    Run completed in 5 minutes, 44 seconds.\r\n    Total number of tests run: 161\r\n    Suites: completed 52, aborted 0\r\n    Tests: succeeded 161, failed 0, canceled 0, ignored 0, pending 0\r\n    All tests passed.\r\n\r\n    :core:testScoverage UP-TO-DATE\r\n    :core:testScoverage (Thread[Daemon worker,5,main]) completed. Took 0.13 secs.\r\n    :core:reportScoverage (Thread[Daemon worker,5,main]) started.\r\n    :core:reportScoverage\r\n    Skipping task ':core:reportScoverage' as task onlyIf is false.\r\n    :core:reportScoverage SKIPPED\r\n    :core:reportScoverage (Thread[Daemon worker,5,main]) completed. Took 0.001 secs.\r\n\r\n    BUILD SUCCESSFUL\r\n\r\n    Total time: 6 mins 40.96 secs\r\n\r\nThe directories under build are : \r\n    \r\n    build/tmp\r\n    build/classes/scoverage/com/xyz/..\r\n    build/classes/testScoverage/com/xyz/..\r\n    build/reports/testScoverage/com/xyz/..\r\n    ...\r\n\r\nWe use Gradle 3.0 with Scala 2.11.8\r\nParent build.gradle contains following related to scoverage : \r\n\r\n    buildscript {\r\n        repositories {\r\n            mavenLocal()\r\n            mavenCentral()\r\n        }\r\n\r\n        dependencies {\r\n            classpath \"gradle.plugin.org.scoverage:gradle-scoverage:2.1.0\"\r\n        }\r\n    }\r\n\r\n    plugins {\r\n        id \"org.scoverage\" version \"2.1.0\" apply false\r\n    }\r\n\r\n    subprojects { subproject ->\r\n        apply plugin: \"org.scoverage\"    \r\n        dependencies {\r\n               scoverage scala('org.scoverage:scalac-scoverage-plugin:1.3.1'), scala('org.scoverage:scalac-scoverage-runtime:1.3.1')  \r\n       }\r\n\r\n        test {\r\n            workingDir = rootDir\r\n        }\r\n        testScoverage {\r\n            workingDir = rootDir\r\n        }\r\n    }\r\n\r\nCould you let me know if we are missing something ? Why is reportScoverage getting SKIPPED. I wonder if the previous steps is generating the correct scoverage files for the reportScoverage step to read it and create the report. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/scoverage/gradle-scoverage/issues/comments/345784793","html_url":"https://github.com/scoverage/gradle-scoverage/issues/64#issuecomment-345784793","issue_url":"https://api.github.com/repos/scoverage/gradle-scoverage/issues/64","id":345784793,"user":{"login":"maiflai","id":4742102,"avatar_url":"https://avatars1.githubusercontent.com/u/4742102?v=4","gravatar_id":"","url":"https://api.github.com/users/maiflai","html_url":"https://github.com/maiflai","followers_url":"https://api.github.com/users/maiflai/followers","following_url":"https://api.github.com/users/maiflai/following{/other_user}","gists_url":"https://api.github.com/users/maiflai/gists{/gist_id}","starred_url":"https://api.github.com/users/maiflai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maiflai/subscriptions","organizations_url":"https://api.github.com/users/maiflai/orgs","repos_url":"https://api.github.com/users/maiflai/repos","events_url":"https://api.github.com/users/maiflai/events{/privacy}","received_events_url":"https://api.github.com/users/maiflai/received_events","type":"User","site_admin":false},"created_at":"2017-11-20T18:27:05Z","updated_at":"2017-11-20T18:27:05Z","author_association":"CONTRIBUTOR","body":"` scalaCompileOptions.setAdditionalParameters(scalacOptions)`\r\n\r\nThis line replaces any existing additional compilation parameters with your custom list.\r\n\r\nYou might consider checking the contents of any existing list before overwriting it?\r\n\r\nI think the path of least resistance here is for me to change the plugin to be even more delayed than it currently is."}}
{"actor":{"display_login":"maiflai"}}