Gradle Gatling Plugin

Run gatling load test scenarios from a gradle build

License

License

Categories

Categories

Gradle Build Tools Gatling Application Testing & Monitoring
GroupId

GroupId

com.github.cmhdave
ArtifactId

ArtifactId

gradle-gatling-plugin
Last Version

Last Version

1.3
Release Date

Release Date

Type

Type

jar
Description

Description

Gradle Gatling Plugin
Run gatling load test scenarios from a gradle build
Project URL

Project URL

https://github.com/cmhdave/gradle-gatling-plugin
Source Code Management

Source Code Management

https://github.com/cmhdave/gradle-gatling-plugin

Download gradle-gatling-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.cmhdave/gradle-gatling-plugin/ -->
<dependency>
    <groupId>com.github.cmhdave</groupId>
    <artifactId>gradle-gatling-plugin</artifactId>
    <version>1.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.cmhdave/gradle-gatling-plugin/
implementation 'com.github.cmhdave:gradle-gatling-plugin:1.3'
// https://jarcasting.com/artifacts/com.github.cmhdave/gradle-gatling-plugin/
implementation ("com.github.cmhdave:gradle-gatling-plugin:1.3")
'com.github.cmhdave:gradle-gatling-plugin:jar:1.3'
<dependency org="com.github.cmhdave" name="gradle-gatling-plugin" rev="1.3">
  <artifact name="gradle-gatling-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.cmhdave', module='gradle-gatling-plugin', version='1.3')
)
libraryDependencies += "com.github.cmhdave" % "gradle-gatling-plugin" % "1.3"
[com.github.cmhdave/gradle-gatling-plugin "1.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Gradle + Gatling Plugin


Gradle + Gatling

Maven Central

license MIT

Setup

Build the plugin with ./gradlew, this by default places an artifact in mavenLocal.

Add the following to your project's build.gradle:

apply plugin: 'gatling'
buildscript {
	dependencies {
		classpath group:'com.github.cmhdave', name:'gradle-gatling-plugin', version:'1.3'
	}
	repositories {
		mavenLocal()
	}
}

Use

Put gatling scenarios in src/test/scala and make sure the class name ends with Scenario.

Tasks

gatlingTest

This will run all Scenarios provided in src/test/scala.

Alternatively you can specify the scenarios to run in your gradle file:

gatling {
  scenarios = [ "package.MySimulation", ... ]
}

openGatlingReport

Opens the report for the most recently run gatling scenario. If you have more than one scenario, use openGatlingReports.

openGatlingReports

Opens all gatling reports in build/gatling-reports.

Building

gradle install

Versions

Version
1.3