SBT Plugin: it:testOnly doesn't work

252 views
Skip to first unread message

John Arrowwood

unread,
Oct 22, 2015, 6:33:47 PM10/22/15
to Gatling User Group
Thought I would create a separate thread for this issue.

I created src/main for my main Gatling framework, src/test for unit tests to make sure that my framework is correct, and src/it for the scenarios that actually load test the application.

Problem is, I can't launch a single test.  

> sbt "it:testOnly <class>" 

does not work.  Whereas

> sbt it:test

does.  Sadly, I need the former to work more than the latter.  Is it just me, or is it broken in the 2.1.7 version of the gatling-sbt plugin?

John Arrowwood

unread,
Oct 23, 2015, 7:37:20 AM10/23/15
to Gatling User Group
This is a docs issue.  The documentation (http://gatling.io/docs/2.1.6/extensions/sbt_plugin.html) says to prefix with "it" but it actually works if I prefix with "gatling-it".  

Alex Xiong

unread,
Oct 10, 2019, 1:15:23 AM10/10/19
to Gatling User Group
Hi John, I'm fairly new to Galting and sbt and using 3.0 right now, and I couldn't fathom the folder structure very well. What's the "main framework" that you refers to? Are those reuseable components that will later be used to construct a scenario?

Better yet, do you mind maybe share your code base (if it's open source), if not maybe help me understand what goes into those three folders a bit better please?

Thanks,
Alex

Alex Xiong

unread,
Oct 10, 2019, 1:15:23 AM10/10/19
to Gatling User Group
also what's the difference between putting my simulations in /src/test than in /src/it/scala/... https://gatling.io/docs/current/extensions/sbt_plugin/#default-settings didn't go into details

thanks.

John Arrowwood

unread,
Oct 11, 2019, 10:10:56 AM10/11/19
to Gatling User Group
Here are a couple of GitHub repos you can reference.  There are helpful documentation there.  After you look at these, if you still have questions, feel free to reach out.

Reply all
Reply to author
Forward
0 new messages