{"action":"created","issue":{"url":"https://api.github.com/repos/arquillian/arquillian-extension-jacoco/issues/21","repository_url":"https://api.github.com/repos/arquillian/arquillian-extension-jacoco","labels_url":"https://api.github.com/repos/arquillian/arquillian-extension-jacoco/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/arquillian/arquillian-extension-jacoco/issues/21/comments","events_url":"https://api.github.com/repos/arquillian/arquillian-extension-jacoco/issues/21/events","html_url":"https://github.com/arquillian/arquillian-extension-jacoco/issues/21","id":92181616,"number":21,"title":"Managed container doesn't generate JaCoCo's coverage report","user":{"login":"dudaMeneses","id":12572965,"avatar_url":"https://avatars.githubusercontent.com/u/12572965?v=3","gravatar_id":"","url":"https://api.github.com/users/dudaMeneses","html_url":"https://github.com/dudaMeneses","followers_url":"https://api.github.com/users/dudaMeneses/followers","following_url":"https://api.github.com/users/dudaMeneses/following{/other_user}","gists_url":"https://api.github.com/users/dudaMeneses/gists{/gist_id}","starred_url":"https://api.github.com/users/dudaMeneses/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dudaMeneses/subscriptions","organizations_url":"https://api.github.com/users/dudaMeneses/orgs","repos_url":"https://api.github.com/users/dudaMeneses/repos","events_url":"https://api.github.com/users/dudaMeneses/events{/privacy}","received_events_url":"https://api.github.com/users/dudaMeneses/received_events","type":"User","site_admin":false},"labels":[{"id":505601216,"url":"https://api.github.com/repos/arquillian/arquillian-extension-jacoco/labels/howto","name":"howto","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2015-06-30T19:42:02Z","updated_at":"2016-12-22T16:37:20Z","closed_at":"2016-12-22T16:37:20Z","body":"Arquillian runs nicely but integration tests aren't covered by report when managed container is used. Follow below my configurations:\n\n```\n<plugin>\n<groupId>org.jacoco</groupId>\n<artifactId>jacoco-maven-plugin</artifactId>\n<version>${jacoco.version}</version>\n<dependencies>\n    <dependency>\n        <groupId>org.jboss.arquillian.extension</groupId>\n        <artifactId>arquillian-jacoco</artifactId>\n        <version>1.0.0.Alpha8</version>\n    </dependency>\n    <dependency>\n        <groupId>org.jacoco</groupId>\n        <artifactId>org.jacoco.core</artifactId>\n        <version>${jacoco.version}</version>\n    </dependency>\n</dependencies>\n<configuration>\n    <append>true</append>\n</configuration>\n<executions>\n    <execution>\n        <id>pre-unit-tests</id>\n        <phase>process-test-classes</phase>\n        <goals>\n            <goal>instrument</goal>\n        </goals>\n        <configuration>\n            <destFile>${sonar.jacoco.reportPath}</destFile>\n            <propertyName>jacoco.agent.ut.arg</propertyName>\n            <append>true</append>\n        </configuration>\n    </execution>\n    <execution>\n        <id>post-unit-tests</id>\n        <goals>\n            <goal>restore-instrumented-classes</goal>\n        </goals>\n    </execution>\n    <execution>\n        <id>pre-integration-test</id>\n        <phase>package</phase>\n        <goals>\n            <goal>prepare-agent</goal>\n        </goals>\n        <configuration>\n            <destFile>${sonar.jacoco.itReportPath}</destFile>\n            <propertyName>jacoco.agent.it.arg</propertyName>\n            <append>true</append>\n        </configuration>\n    </execution>\n    <execution>\n        <id>jacoco-merge</id>\n        <phase>verify</phase>\n        <goals>\n            <goal>merge</goal>\n        </goals>\n        <configuration>\n            <fileSets>\n                <fileSet implementation=\"org.apache.maven.shared.model.fileset.FileSet\">\n                    <directory>target/jacoco</directory>\n                    <includes>\n                        <include>*.exec</include>\n                    </includes>\n                </fileSet>\n            </fileSets>\n            <destFile>target/jacoco.exec</destFile>\n        </configuration>\n    </execution>\n    <execution>\n        <id>jacoco-site</id>\n        <phase>verify</phase>\n        <goals>\n            <goal>report</goal>\n        </goals>\n    </execution>\n   </executions>\n</plugin>\n<plugin>\n<artifactId>maven-failsafe-plugin</artifactId>\n<version>2.12.4</version>\n<configuration>\n    <environmentVariables>\n        <JBOSS_HOME>arquillian.jbossHome</JBOSS_HOME>\n    </environmentVariables>\n    <argLine>${jacoco.agent.it.arg}</argLine>\n    <includes>\n        <include>integration/*</include>\n    </includes>\n    <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>\n    <systemPropertyVariables>\n        <arquillian.launch>jboss-managed</arquillian.launch>\n    </systemPropertyVariables>\n</configuration>\n<executions>\n    <execution>\n        <id>integration-tests</id>\n        <phase>integration-test</phase>\n        <goals>\n            <goal>integration-test</goal>\n            <goal>verify</goal>\n        </goals>\n    </execution>\n</executions>\n</plugin>\n<plugin>\n<groupId>org.apache.maven.plugins</groupId>\n<artifactId>maven-surefire-plugin</artifactId>\n<version>2.16</version>\n<configuration>\n    <skipTests>true</skipTests>\n    <systemPropertyVariables>\n        <jacoco-agent.destfile>target/jacoco/jacoco-ut.exec</jacoco-agent.destfile>\n    </systemPropertyVariables>\n</configuration>\n<executions>\n    <execution>\n        <id>unit-tests</id>\n        <phase>test</phase>\n        <goals>\n            <goal>test</goal>\n        </goals>\n        <configuration>\n            <skipTests>false</skipTests>\n            <argLine>${jacoco.agent.ut.arg}</argLine>\n            <excludes>\n                <exclude>integration/*IT.java</exclude>\n            </excludes>\n        </configuration>\n    </execution>\n</executions>\n</plugin>\n```\n"},"comment":{"url":"https://api.github.com/repos/arquillian/arquillian-extension-jacoco/issues/comments/268837940","html_url":"https://github.com/arquillian/arquillian-extension-jacoco/issues/21#issuecomment-268837940","issue_url":"https://api.github.com/repos/arquillian/arquillian-extension-jacoco/issues/21","id":268837940,"user":{"login":"bartoszmajsak","id":719616,"avatar_url":"https://avatars.githubusercontent.com/u/719616?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoszmajsak","html_url":"https://github.com/bartoszmajsak","followers_url":"https://api.github.com/users/bartoszmajsak/followers","following_url":"https://api.github.com/users/bartoszmajsak/following{/other_user}","gists_url":"https://api.github.com/users/bartoszmajsak/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszmajsak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszmajsak/subscriptions","organizations_url":"https://api.github.com/users/bartoszmajsak/orgs","repos_url":"https://api.github.com/users/bartoszmajsak/repos","events_url":"https://api.github.com/users/bartoszmajsak/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszmajsak/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T16:37:20Z","updated_at":"2016-12-22T16:37:20Z","body":"Thanks guys for all the collaboration. We will make a `howto` on arquillian.org about the JaCoCo configuration soon"}}
{"actor":{"display_login":"bartoszmajsak"}}