Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run test with Jacoco enabled project #459

Open
2 of 7 tasks
missedone opened this issue Sep 13, 2019 · 0 comments
Open
2 of 7 tasks

Can't run test with Jacoco enabled project #459

missedone opened this issue Sep 13, 2019 · 0 comments
Assignees

Comments

@missedone
Copy link
Collaborator

missedone commented Sep 13, 2019

Problem Statement

after migrate to jacoco, the test failed to start in Eclipse, but runs well with maven cli.

<plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <configuration>
            <argLine>
<!-- jacoco generate the property `argLine` -->
                ${argLine}
                -Xmx256m
                -noverify
            </argLine>
          </configuration>
        </plugin>
        <plugin>
            <groupId>org.jacoco</groupId>
            <artifactId>jacoco-maven-plugin</artifactId>
            <executions>
                <execution>
                    <goals>
                        <goal>prepare-agent</goal>
                    </goals>
                </execution>
                <!-- attached to Maven test phase -->
                <execution>
                    <id>report</id>
                    <phase>test</phase>
                    <goals>
                        <goal>report</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

Any relate message in "Error Log" view

"Windows -> Show View -> Others -> Error Log"

Screenshot at Sep 13 11-04-04

The Dependency Management tool for your project

  • Maven
  • Gradle
  • Ant
  • Eclipse Buildpath (aka. Use "TestNG Library" for your project in Eclipse)

Operating System

  • Windows
  • Linux
  • OSX
@missedone missedone self-assigned this Sep 13, 2019
missedone added a commit that referenced this issue Sep 15, 2019
missedone added a commit that referenced this issue Sep 15, 2019
missedone added a commit that referenced this issue Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant