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.

Get Weekly AI Implementation Insights

Join engineering leaders who receive my analysis of common AI production failures and how to prevent them. No fluff, just actionable techniques.

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…

Engineering leaders: Is your AI failing in production? Take the 10-minute assessment
>