# Gatling-sbt No test to run

**URL:** <https://community.gatling.io/t/gatling-sbt-no-test-to-run/1926>\
**Category:** Gatling (Open-Source)\
**Created:** [January 23, 2015, 1:25pm UTC](https://community.gatling.io/t/gatling-sbt-no-test-to-run/1926 "2015-01-23T13:25:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erwan\_koffi](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@erwan\_koffi](https://community.gatling.io/u/erwan_koffi)\
**Post date:** [January 23, 2015, 1:25pm UTC](https://community.gatling.io/t/gatling-sbt-no-test-to-run/1926/1 "2015-01-23T13:25:12Z")

</div>

Hello,

I’m trying to run a simple gatling test from sbt, using sbt-gatling plugin.

This is the test to run:

`

package default

import scala.concurrent.duration.\_

import io.gatling.core.Predef.\_  
import io.gatling.http.Predef.\_  
import io.gatling.jdbc.Predef.\_

class RecordedSimulation extends Simulation {

val httpProtocol = http  
.baseURL(“[http://www.google.fr](http://www.google.fr)”)  
.inferHtmlResources(BlackList("""._.js""", “”"._.css""", “”"._.gif""", “”"._.jpeg""", “”"._.jpg""", “”"._.ico""", “”"._.woff""", “”"._.(t|o)tf""", “”"._.png"""), WhiteList())  
.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,_/\*;q=0.8")  
.acceptEncodingHeader(“gzip, deflate”)  
.acceptLanguageHeader(“en-US,en;q=0.5”)  
.connection(“keep-alive”)  
.userAgentHeader(“Mozilla/5.0 (X11; Ubuntu; Linux x86\_64; rv:35.0) Gecko/20100101 Firefox/35.0”)

val uri1 = “[www.google.fr](http://www.google.fr)”

val scn = scenario(“RecordedSimulation”)  
.exec(http(“request\_0”)  
.get("/"))

setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol).assertions(global.responseTime.max.lessThan(50))  
}

`

And the project tree:

`

.  
├── build.sbt  
├── project  
│ ├── plugins.sbt  
└── src  
├── main  
│ ├── java  
│ └── scala  
└── test  
├── java  
├── resources  
│ ├── bodies  
│ │ └── RecordedSimulation\_0001\_request.txt  
│ ├── gatling.conf  
│ └── recorder.conf  
└── scala  
└── default  
└── RecordedSimulation.scala

`

When I run sbt test, no test is run.  
When I run testQuick default.RecordedSimulation i get a No tests to run for gatling:testQuick

This may be totally unrelated, but it apears that recorder is not reading recorder.conf file, I’m guessing that Gatling is not reading it either, but I can’t understand why, conf files have been created using sbt copyConfigFiles

Anyone has any idea?  
Thanks!

---

<div class="post-metadata">

**Author:** ![erwan\_koffi](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@erwan\_koffi](https://community.gatling.io/u/erwan_koffi)\
**Post date:** [January 25, 2015, 3:56pm UTC](https://community.gatling.io/t/gatling-sbt-no-test-to-run/1926/2 "2015-01-25T15:56:23Z")

</div>

Okay, Configuration files must be in src/ **main** /resources to be read by the recorder. Although, I have not resolved the main problem yet!

---

<div class="post-metadata">

**Author:** ![erwan\_koffi](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@erwan\_koffi](https://community.gatling.io/u/erwan_koffi)\
**Post date:** [January 25, 2015, 6:16pm UTC](https://community.gatling.io/t/gatling-sbt-no-test-to-run/1926/3 "2015-01-25T18:16:48Z")

</div>

Finally found why no test were run, I had messed up with the dependencies.

For the record:

`

```auto
"io.gatling.highcharts" % "gatling-charts-highcharts" % "2.1.3" % "test"
"io.gatling" % "gatling-test-framework" % "2.1.3" % "test"

```

`

Were in the plugin.sbt instead of build.sbt.
