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.

Want to build AI systems that actually work?

Download my expert-crafted GenAI Transformation Guide for Data Teams and discover how to properly measure AI performance, set up guardrails, and continuously improve your AI solutions like the pros.

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…

Are you looking for an experienced AI consultant? Do you need assistance with your RAG or Agentic Workflow?
Book a Quick Consultation, send me a message on LinkedIn. Book a Quick Consultation or send me a message on LinkedIn

>