Skip to content

Commit 632b7cf

Browse files
committed
Profile to include agent in test execution
1 parent 9c09a57 commit 632b7cf

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ target
55
build.xml
66
/.apt_generated/
77
/.apt_generated_tests/
8+
agent.config
9+
hdivAgentLog.hlg

pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,27 @@
212212
<scope>test</scope>
213213
</dependency>
214214
</dependencies>
215+
216+
<profiles>
217+
<profile>
218+
<id>hdiv-agent-tests</id>
219+
<build>
220+
<plugins>
221+
<plugin>
222+
<groupId>org.apache.maven.plugins</groupId>
223+
<artifactId>maven-surefire-plugin</artifactId>
224+
<version>2.9</version>
225+
<configuration>
226+
<argLine>
227+
-javaagent:/path-to-hdiv/agent/java/hdiv-ee-agent.jar
228+
-Dhdiv.config.dir=/path-to-hdiv/license/
229+
-Dhdiv.testing.mode=true
230+
-Dhdiv.mandatory.app.name=insecure-bank
231+
</argLine>
232+
</configuration>
233+
</plugin>
234+
</plugins>
235+
</build>
236+
</profile>
237+
</profiles>
215238
</project>

0 commit comments

Comments
 (0)