Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alphagov/gradle-gatling-plugin
gradle plugin for running gatling scenarios
https://github.com/alphagov/gradle-gatling-plugin
verify
Last synced: 3 months ago
JSON representation
gradle plugin for running gatling scenarios
- Host: GitHub
- URL: https://github.com/alphagov/gradle-gatling-plugin
- Owner: alphagov
- License: mit
- Archived: true
- Created: 2014-08-01T08:59:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-04T14:37:10.000Z (about 1 year ago)
- Last Synced: 2024-08-04T03:03:35.719Z (6 months ago)
- Topics: verify
- Language: Groovy
- Size: 148 KB
- Stars: 13
- Watchers: 51
- Forks: 19
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-gradle - gradle-gatling-plugin - Run [Gatling](http://gatling.io/) scenarios. (Plugins / Testing)
README
# 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:'uk.gov', name:'gradle-gatling-plugin', version:'1.2-SNAPSHOT'
}
repositories {
mavenLocal()
}
}You also need some dependencies in order for Gatling itself to be available to your project. Update the version numbers as required:
dependencies {
testCompile 'io.gatling.highcharts:gatling-charts-highcharts:2.2.3'
}For further information on how to install Gatling please consult the Gatling [Installation](https://gatling.io/docs/current/installation/) documentation.
# Use
Put [gatling][1] 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
[1]: http://gatling-tool.org/