# Gatling and ScalaTest

**URL:** <https://community.gatling.io/t/gatling-and-scalatest/986>\
**Category:** Gatling (Open-Source)\
**Created:** [April 28, 2014, 7:44am UTC](https://community.gatling.io/t/gatling-and-scalatest/986 "2014-04-28T07:44:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmytro\_Makhno](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Dmytro\_Makhno](https://community.gatling.io/u/Dmytro_Makhno)\
**Post date:** [April 28, 2014, 7:44am UTC](https://community.gatling.io/t/gatling-and-scalatest/986/1 "2014-04-28T07:44:29Z")

</div>

Hello,

I found discussion  
[https://github.com/excilys/gatling/issues/1475#issuecomment-27860350](https://github.com/excilys/gatling/issues/1475#issuecomment-27860350)

And I was not able to get this work.

Mixing gatling test with scalatest seems very natural for me.

Usages I see:

- More precisely and with know framework define success criteria, based on scenarios output, introducing stat.js in scala.
- Reusing traits for integration tests with load, e.g. BeforeAndAfter trait in scalatest, without need to reimplement it for Simulation.
- Being able to define tests before and after, and this is really Tests.
- Possible to mix integration tests with load push.

Does it seem overuse of gatling? Does someone already using it in this way?

Regards,  
Dmytro

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [April 28, 2014, 7:58am UTC](https://community.gatling.io/t/gatling-and-scalatest/986/2 "2014-04-28T07:58:09Z")

</div>

The plan is to be able to use scalatest and others on top of the test framework that’s been done for the sbt plugin.
