Testing in Scala
Publisher: O'Reilly Media
Final Release Date: January 2013
Pages: 166

If you build your Scala application through Test-Driven Development, you’ll quickly see the advantages of testing before you write production code. This hands-on book shows you how to create tests with ScalaTest and the Specs2—two of the best testing frameworks available—and how to run your tests in the Simple Build Tool (SBT) designed specifically for Scala projects.

By building a sample digital jukebox application, you’ll discover how to isolate your tests from large subsystems and networks with mocking code, and how to use the ScalaCheck library for automated specification-based testing. If you’re familiar with Scala, Ruby, or Python, this book is for you.

  • Get an overview of Test-Driven Development
  • Start a simple project with SBT and create tests before you write code
  • Dive into SBT’s basic commands, interactive mode, packaging, and history
  • Use ScalaTest both in the command line and with SBT, and learn how to incorporate JUnit and TestNG
  • Work with the Specs2 framework, including Specification styles, matchers DSLs, and Data Tables
  • Understand mocking by using Java frameworks EasyMock and Mockito, and the Scala-only framework ScalaMock
  • Automate testing by using ScalaCheck to generate fake data
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyTesting in Scala
 
2.0

(based on 1 review)

Ratings Distribution

  • 5 Stars

     

    (0)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (1)

  • 1 Stars

     

    (0)

Reviewed by 1 customer

Displaying review 1

Back to top

(3 of 3 customers found this review helpful)

 
2.0

not the usual standard

By nicferrier

from England

About Me Designer, Developer, Educator, Maker, Sys Admin

Verified Reviewer

Pros

  • Easy to understand

Cons

  • Too many errors

Best Uses

  • Intermediate
  • Novice

Comments about oreilly Testing in Scala:

The content is ok-ish (the jokes are a bit lame and there's some serious patronizing language) but the worst is the editing.

There is bad typesetting, poor grammar, semantic errors, all sorts. Has the editorial system broken down?

Seriously, it's the worst edited O'Reilly book I've ever read.

Displaying review 1

Back to top

 
Buy 2 Get 1 Free Free Shipping Guarantee
Buying Options
Immediate Access - Go Digital what's this?
Ebook: $14.99
Formats:  DAISY, ePub, Mobi, PDF
Print & Ebook: $19.79
Print: $17.99