Gatling tests

I am trying to setup gatling but it refuses to compile in test - compiles fine in src/main/scala. My build sbt is:

import Dependencies._
import sbt.enablePlugins

lazy val root = (project in file("."))
organization := "com.wd.perftool",
name := "portal-integration-test",
version := "0.0.1-SNAPSHOT",
scalaVersion := "2.13.4",
libraryDependencies ++= core,
libraryDependencies ++= gatling,
credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
scalacOptions ++= Seq(

I declare gatling dependency as follows:
val gatling = Seq(
“io.gatling” % “gatling-test-framework” % GatlingVersion % “test,it”,
“io.gatling.highcharts” % “gatling-charts-highcharts” % GatlingVersion % “test,it”

with gatling version as:
val GatlingVersion = “3.5.1”

Any suggestions are welcome

Have you tried iterating over the official sbt sample?

Yea. Unless there is something akin to resolvers that I missed … I think I did.

Well, as you can see, the demo project does compile Gatling tests in src/test/scala, so it works there.
I recommend you start from the regular demo project and iterate.
As you don’t provide a full sample (see this group’s terms about providing a SSCCE), there’s no way to help you.

thanks for your help. I used sbt template that gatling provides, compiles just fine - very strange.

Hi Stephane:

Thanks for your inputs. I retried making the project using sbt gitter8 template, frustratingly it works good there - i will review my previous project different vs this and see what was the culprit …