Am Donnerstag, 15. Juni 2017 15:20:34 UTC+2 schrieb Evgeny Mandrikov:

Also setting of JVM arguments for spring-boot-maven-plugin should be as 
> easy as described in their documentation - 
> https://docs.spring.io/spring-boot/docs/current/maven-plugin/examples/run-debug.html
>

I tried this:

[jacoco plugin]

     <execution>
      <id>jacoco-initialize-it</id>
      <phase>pre-integration-test</phase>
      <goals>
        <goal>prepare-agent-integration</goal>
      </goals>
    </execution>
 
i.e. No plugin name explicitly set.

[spring-boot plugin]

    <execution>
      <id>pre-integration-test</id>
      <goals>
        <goal>start</goal>
      </goals>
      <configuration>
        <arguments>
          <argument>--integration-test</argument>
        </arguments>
        <maxAttempts>3</maxAttempts>
        <wait>10000</wait>
        <fork>true</fork>
        *<jvmArguments>${argLine}</jvmArguments>*
      </configuration>
    </execution>

I.e. use the standard property name.

While the spring boot app was up I took a look at the process list and 
found that indeed my webservice was running with JVM-args like 
this: -javaagent:/path/to/jacoco.agent-0.7.9-runtime.jar=destfile=...
Hence the property obviously got passed successfully. 

This has brought me one step further: My webservice tests are recorded now, 
but only when I eliminate all other TestNG tests that are not sending 
webservice requests (e.g. testing services inside a test spring context 
etc.).

Is there any way to get this together?


-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/0d205384-e281-4bab-ade1-903df7bdb7d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to