Sbt

Get rid of “;” error from sbt

For a long time I got “;” and command error when run sbt gatling but did not know what is wrong.

Photo by Nathan Dumlao on Unsplash

Now I know why.

It’s funny because I’m missing “” for the command and the error log looks hard to find out why.

The command that has error look like this:

sbt gatling:testOnly SearchService

And will throw error like below

[error] Expected ';'
[error] Not a valid command: SearchService (similar: startServer)
[error] Not a valid project ID: SearchService
[error] Expected ':'
[error] Expected '/'
[error] Not a valid key: SearchService (similar: watchService, interactionService)
[error] SearchService
[error] ^

Hard to trace right?

In fact all you need to do is

sbt "gatling:testOnly SearchService"

And there you go

[success] Total time: 6 s, completed Sep 23, 2020, 5:03:26 PM

Thanks for reading my post.

~~PEACE~~

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store