Skip to content

Commit

Permalink
Fixed scalability test for V23.2 version of the project with latest G…
Browse files Browse the repository at this point in the history
…atling and Java script format
  • Loading branch information
johannest authored and manolo committed Aug 21, 2023
1 parent 991f236 commit 07dd684
Show file tree
Hide file tree
Showing 31 changed files with 374 additions and 342 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,10 @@ As both IDEs support running Spring Boot applications you just have to import th

# Running Scalability Tests

*NOTE* SCALABILITY TESTS ARE BROKEN

The Bakery App Starter includes scalability tests. Once you have deployed a production build of Bakery you can run them to check how the app behaves under load. The scalability tests can be run completely on your local machine, but you might as well want to run locally only the test agents while the Bakery app under test is deployed to an environment that is close to your production.

In order to run the scalability tests locally:

1. Make sure you are using Java 8 (Gatling Maven plugin does not yet work with Java 9+)

1. Build and start Bakery in the production mode (e.g. ```mvn clean spring-boot:run -DskipTests -Pproduction```)

1. Open terminal in the project root
Expand Down
28 changes: 8 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>

<!-- Plugins -->
<gatling.version>3.3.0</gatling.version>
<gatling-plugin.version>3.1.2</gatling-plugin.version>
<scala-maven-plugin.version>3.4.4</scala-maven-plugin.version>
<gatling.version>3.8.4</gatling.version>
<gatling-plugin.version>4.2.7</gatling-plugin.version>
</properties>

<repositories>
Expand Down Expand Up @@ -188,6 +187,12 @@
<version>5.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.gatling.highcharts</groupId>
<artifactId>gatling-charts-highcharts</artifactId>
<version>${gatling.version}</version>
<scope>test</scope>
</dependency>
</dependencies>


Expand Down Expand Up @@ -404,32 +409,15 @@
</property>
</activation>
<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport</artifactId>
<version>4.1.25.Final</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.gatling.highcharts</groupId>
<artifactId>gatling-charts-highcharts</artifactId>
<version>${gatling.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-transport</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>${scala-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId>
Expand Down
Loading

0 comments on commit 07dd684

Please sign in to comment.