marcuswj-telia commented on issue #3461:
URL: 
https://github.com/apache/maven-surefire/issues/3461#issuecomment-5618114727

   Can confirm that a variation of this solves our issue as well (obviously by 
targeting mockk and not mockito but yeah). Thanks to you both @uckelman and 
@lprimak 
   
   > Apparently what's needed for mockito is this, merged with the existing 
pom.xml:
   > 
   > ```
   > <properties>
   >     <argLine/>
   > </properties>
   > 
   > <plugins>
   >       <plugin>
   >        <groupId>org.apache.maven.plugins</groupId>
   >        <artifactId>maven-dependency-plugin</artifactId>
   >        <executions>
   >            <execution>
   >                <goals>
   >                    <goal>properties</goal>
   >                </goals>
   >            </execution>
   >        </executions>
   >     </plugin>
   > </plugins>
   > 
   > <plugin>
   >     <artifactId>maven-surefire-plugin</artifactId>
   >     <configuration>
   >         <argLine>@{argLine} 
-javaagent:${org.mockito:mockito-core:jar}</argLine>
   >     </configuration>
   > </plugin>
   > ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to