# Gatling tests

**URL:** <https://community.gatling.io/t/gatling-tests/6013>\
**Category:** Gatling (Open-Source)\
**Created:** [March 10, 2021, 5:12pm UTC](https://community.gatling.io/t/gatling-tests/6013 "2021-03-10T17:12:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anirudh\_Vyas](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Anirudh\_Vyas](https://community.gatling.io/u/Anirudh_Vyas)\
**Post date:** [March 10, 2021, 5:12pm UTC](https://community.gatling.io/t/gatling-tests/6013/1 "2021-03-10T17:12:43Z")

</div>

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

```nohighlight
import Dependencies._
import sbt.enablePlugins

lazy val root = (project in file("."))
.settings(
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")
).enablePlugins(GatlingPlugin)
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-target:jvm-1.8",
"-language:implicitConversions",
"-language:higherKinds",
"-language:postfixOps",
"-feature",
"-Xfatal-warnings"
)

```

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

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [March 10, 2021, 5:22pm UTC](https://community.gatling.io/t/gatling-tests/6013/2 "2021-03-10T17:22:22Z")

</div>

Have you tried iterating over the official sbt sample? [https://gatling.io/docs/current/extensions/sbt\_plugin/](https://gatling.io/docs/current/extensions/sbt_plugin/)

---

<div class="post-metadata">

**Author:** ![Anirudh\_Vyas](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Anirudh\_Vyas](https://community.gatling.io/u/Anirudh_Vyas)\
**Post date:** [March 10, 2021, 7:11pm UTC](https://community.gatling.io/t/gatling-tests/6013/3 "2021-03-10T19:11:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [March 10, 2021, 7:27pm UTC](https://community.gatling.io/t/gatling-tests/6013/4 "2021-03-10T19:27:20Z")

</div>

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](https://groups.google.com/g/gatling) about providing a SSCCE), there’s no way to help you.

---

<div class="post-metadata">

**Author:** ![Anirudh\_Vyas](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Anirudh\_Vyas](https://community.gatling.io/u/Anirudh_Vyas)\
**Post date:** [March 10, 2021, 8:02pm UTC](https://community.gatling.io/t/gatling-tests/6013/5 "2021-03-10T20:02:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Anirudh\_Vyas](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Anirudh\_Vyas](https://community.gatling.io/u/Anirudh_Vyas)\
**Post date:** [March 10, 2021, 8:09pm UTC](https://community.gatling.io/t/gatling-tests/6013/6 "2021-03-10T20:09:58Z")

</div>

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 …
