Skip to content

Instantly share code, notes, and snippets.

@julien-truffaut
Last active September 9, 2015 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julien-truffaut/cf720ec51540748f0e98 to your computer and use it in GitHub Desktop.
Save julien-truffaut/cf720ec51540748f0e98 to your computer and use it in GitHub Desktop.
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