O'Reilly logo

sbt in Action by Josh Suereth and Matthew Farwell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Accepting user input

This chapter covers

  • Interacting with the build user
  • Customizing automation for development
  • Autocompleting parser combinators

In the previous chapters, we focused on how to use sbt to automate the development tasks for the preowned-kittens project. Although this is vitally important, sometimes automation can cause friction in development. For example, if the developers create a ton of slow-running unit tests, it can hurt developer productivity. sbt counters this lost productivity through customized automation, like the testOnly task.

As you may recall from chapter 4, the testOnly task takes user input and declares a filter for which unit tests to run. sbt provides a generalized mechanism for users to customize ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required