Use when you need to set up Gatling performance testing for a Java Maven project — including adding Gatling dependencies and the Gatling Maven plugin, creating Java simulations, running gatling:test, configuring a simulation class, and reviewing generated reports. This should trigger for requests such as Add Gatling performance testing; Apply Gatling performance testing; Create a Gatling simulation; Add Gatling support. Part of cursor-rules-java project
68
—
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Provide a complete Gatling performance testing setup for Java Maven projects by adding the required test dependencies and Gatling Maven plugin configuration, creating or guiding Java simulation placement, and explaining how to run simulations and inspect reports.
What is covered in this Skill?
gatling-maven-plugin to pom.xmlsrc/test/java for Java simulations and src/test/resources for Gatling configuration, feeders, templates, and logging./mvnw gatling:test-Dgatling.simulationClass=<FullyQualifiedClassName> when multiple simulations exist./mvnw gatling:help -Ddetail=true -Dgoal=test to inspect available plugin optionsScope: Use Gatling through the Maven plugin for Java simulations. Prefer project-local Maven wrapper commands when available.
Gatling setup must be Maven-based, reproducible, and compatible with Java project conventions. Prefer official Gatling Maven plugin behavior and avoid inventing unsupported command-line options.
./mvnw when the Maven wrapper existsio.gatling:gatling-maven-plugin in pom.xmlsrc/test/java using an appropriate package namegatling.conf, feeders, request-body templates, and Logback test configuration under src/test/resources-Dgatling.simulationClass=<FullyQualifiedClassName> for non-interactive executionCheck for pom.xml, the Maven wrapper, existing test dependencies, dependency management, plugin management, and any existing Gatling configuration.
Add the Gatling test dependency and io.gatling:gatling-maven-plugin using the project's existing version and plugin configuration style.
Create Java simulation classes under src/test/java or adapt existing simulations, keeping scenario names, base URLs, injection profiles, and assertions explicit.
Add optional Gatling resources under src/test/resources, including gatling.conf, feeders, request body templates, and logback-test.xml only when the project needs them.
Use ./mvnw gatling:test to run simulations and -Dgatling.simulationClass=<FullyQualifiedClassName> when a specific simulation must be selected.
Confirm the Gatling run completed, point to the generated report location from the command output, and summarize any failed assertions or performance findings.
For detailed guidance, examples, and constraints, see references/152-java-performance-gatling.md.
86eb63d
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.