Skip to content

Instantly share code, notes, and snippets.

@julien-truffaut
Last active Sep 9, 2015
Embed
What would you like to do?
gatling custom test config
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