Note to self. Maybe one day I will finally remember how to run a single test class in sbt. Currently, I must google that every time I need it.

When you want to run tests from a single test class using the command line (not from the sbt interactive mode), you probably write this:

sbt testOnly name.mikulskibartosz.TestClass

This is wrong! It runs all of the tests.

The correct way of running a single test class looks like this:

sbt "testOnly name.mikulskibartosz.TestClass"

Please remember about the quotation.

Older post

How to use Scrapy to follow links on the scraped pages

A web spider that does not follow links is not very useful, let’s fix that.

Newer post

5 best books I read in 2018

A list that surprised even me…