Scala Test-Driven Development

Build robust Scala applications by implementing the fundamentals of test-driven development in your workflow

Scala Test-Driven Development

Gaurav Sood

Build robust Scala applications by implementing the fundamentals of test-driven development in your workflow
Packt Subscription
$5.00
$9.99/m after first month
eBook
$5.00
RRP $31.99
Save 84%
Print + eBook
$39.99
RRP $39.99
What do I get with a Packt subscription?
  • Exclusive monthly discount - no contract
  • Unlimited access to entire Packt library of 6500+ eBooks and Videos
  • 120 new titles added every month, on new and emerging tech
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
$5.00
$5.00
$39.99
$9.99/m after first month
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Subscribe Now

Frequently bought together


Scala Test-Driven Development Book Cover
Scala Test-Driven Development
$ 31.99
$ 5.00
Learning Concurrent Programming in Scala - Second Edition Book Cover
Learning Concurrent Programming in Scala - Second Edition
$ 35.99
$ 5.00
Buy 2 for $10.00
Save $57.98
Add to Cart

Book Details

ISBN 139781786464675
Paperback198 pages

Book Description

Test-driven development (TDD) produces high-quality applications in less time than is possible with traditional methods. Due to the systematic nature of TDD, the application is tested in individual units as well as cumulatively, right from the design stage, to ensure optimum performance and reduced debugging costs.

This step-by-step guide shows you how to use the principles of TDD and built-in Scala testing modules to write clean and fully tested Scala code and give your workflow the change it needs to let you create better applications than ever before.

After an introduction to TDD, you will learn the basics of ScalaTest, one of the most flexible and most popular testing tools around for Scala, by building your first fully test-driven application. Building on from that you will learn about the ScalaTest API and how to refactor code to produce high-quality applications.

We’ll teach you the concepts of BDD (Behavior-driven development) and you’ll see how to add functional tests to the existing suite of tests. You’ll be introduced to the concepts of Mocks and Stubs and will learn to increase test coverage using properties.

With a concluding chapter on miscellaneous tools, this book will enable you to write better quality code that is easily maintainable and watch your apps change for the better.

What You Will Learn

  • Understand the basics of TDD and its significance
  • Refactoring tests to build APIs in order to increase test coverage
  • How to leverage the inbuilt Scala testing modules like ScalaTest, specs2 and Scala Check
  • Writing test fixtures and apply the concepts of BDD
  • How to divide tests to run at different points in continuous delivery cycle
  • Benefits of refactoring and how it affects the final quality of code produced
  • Understanding of SBT based build environment and how to use it to run tests
  • The fundamentals of mocking and stubbing in Scala and how to use it efficiently

Authors

Book Details

ISBN 139781786464675
Paperback198 pages
Read More

Read More Reviews

Recommended for You

Learning Concurrent Programming in Scala - Second Edition Book Cover
Learning Concurrent Programming in Scala - Second Edition
$ 35.99
$ 5.00
Scala Microservices Book Cover
Scala Microservices
$ 35.99
$ 5.00
Scala Reactive Programming Book Cover
Scala Reactive Programming
$ 35.99
$ 5.00
Learning Scala Programming Book Cover
Learning Scala Programming
$ 35.99
$ 5.00
Scala for Machine Learning - Second Edition Book Cover
Scala for Machine Learning - Second Edition
$ 47.99
$ 5.00
Scala High Performance Programming Book Cover
Scala High Performance Programming
$ 35.99
$ 5.00