Last active
September 9, 2015 11:53
-
-
Save julien-truffaut/cf720ec51540748f0e98 to your computer and use it in GitHub Desktop.
gatling custom test config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scalaVersion := "2.11.7" | |
libraryDependencies ++= Seq( | |
"io.gatling.highcharts" % "gatling-charts-highcharts" % "2.1.7" % "test", | |
"io.gatling" % "gatling-test-framework" % "2.1.7" % "test" | |
) | |
lazy val LoadTest = config("load") extend Test | |
lazy val LoadTest = config("load") extend Test | |
val sandbox = project.in(file(".")) | |
.configs(LoadTest ) | |
.settings(inConfig(LoadTest)(Defaults.testTasks)) | |
.settings( | |
testOptions in Test := Seq(Tests.Filter(isUnitTest)), | |
testOptions in LoadTest := Seq(Tests.Filter(isLoadTest)) | |
).enablePlugins(GatlingPlugin) | |
def isUnitTest(s: String): Boolean = s.endsWith("Spec") | |
def isLoadTest(s: String): Boolean = s.endsWith("Simulation") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment