Member-only story
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.
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~~