Converting from Maven to sbt

I am in the process of converting from using maven to sbt but I am encountering the following exception when I run my simulations:

Caused by: sbt.ForkMain$ForkError: Could not locate feeder file; file login-users.csv doesn’t exist

That file exists in the src/test/resources/data directory and when I switch back to maven it works fine.

How do I set the following settings in my build.sbt that I have set in my maven pom file?

src/test/resources/data target/results src/test/resources/bodies src/test/scala

This is what my build.sbt looks like so far:


organization := “
name := “ci-qa-performance-tests”
version := “1.0.0-SNAPSHOT”

scalaVersion := “2.11.4”
scalacOptions := Seq("-encoding",

resolvers += “Sonatype OSS Snapshots” at “

libraryDependencies += “io.gatling.highcharts” % “gatling-charts-highcharts” % “2.1.2” % “test”
libraryDependencies += “io.gatling” % “gatling-test-framework” % “2.1.2” % “test”
libraryDependencies += “org.apache.httpcomponents” % “httpclient” % “4.3.3”
libraryDependencies += “commons-lang” % “commons-lang” % “2.6”



This error comes from the fact that, by default, all resources are searched in src/test/resources.
Simply move your feeder file up in src/test/resources and it’ll work :wink:



Thanks Pierre!

I was hoping there was a way to configure it externally without having to move the files. Instead I just reference them with the extra path parameter like so:


Do you know if there are any plans to be able to configure this externally like you can for scalaSource and target?


Well, you can always customize your build and add other resources directories to your list of resource directories :

resourceDirectories in Gatling += (resourceDirectory in Test).value / “data”

This could be done in the plugin indeed :slight_smile:



Thanks Pierre!

You’re welcome :slight_smile:

Have fun with Gatling !