Skip to content

Commit 0469d6f

Browse files
authored
Merge pull request eugenp#5201 from eugenp/gatling_sim_prof
BAEL-8834: The basic run of the Gatlin module shouldn't run any Gatling scenario
2 parents 89fbcce + 0db1e5e commit 0469d6f

2 files changed

Lines changed: 26 additions & 13 deletions

File tree

‎testing-modules/gatling/README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
### Relevant Articles:
22
- [Intro to Gatling](http://www.baeldung.com/introduction-to-gatling)
3+
4+
### Running a simualtion
5+
- To run a simulation use "simulation" profile, command - `mvn install -Psimulation -Dgib.enabled=false`

‎testing-modules/gatling/pom.xml‎

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,31 @@
6868
</execution>
6969
</executions>
7070
</plugin>
71-
<plugin>
72-
<groupId>io.gatling</groupId>
73-
<artifactId>gatling-maven-plugin</artifactId>
74-
<version>${gatling-maven-plugin.version}</version>
75-
<executions>
76-
<execution>
77-
<phase>test</phase>
78-
<goals>
79-
<goal>execute</goal>
80-
</goals>
81-
</execution>
82-
</executions>
83-
</plugin>
8471
</plugins>
8572
</build>
73+
74+
<profiles>
75+
<profile>
76+
<id>simulation</id>
77+
<build>
78+
<plugins>
79+
<plugin>
80+
<groupId>io.gatling</groupId>
81+
<artifactId>gatling-maven-plugin</artifactId>
82+
<version>${gatling-maven-plugin.version}</version>
83+
<executions>
84+
<execution>
85+
<phase>test</phase>
86+
<goals>
87+
<goal>execute</goal>
88+
</goals>
89+
</execution>
90+
</executions>
91+
</plugin>
92+
</plugins>
93+
</build>
94+
</profile>
95+
</profiles>
8696

8797
<dependencyManagement>
8898
<dependencies>

0 commit comments

Comments
 (0)