Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Test-Driven Development with Scala

Course Summary

The Test-Driven Development with Scala training course focuses is designed to demonstrate how to write effective and complete tests for Scala-based applications.

The course begins with an introduction to Test-Driven Design (TDD) concepts and the significance of TDD to modern software development. It then transitions into the mechanical aspects of testing with Scala, covering things like the Simple Build Tool (SBT), ScalaTest, and Specifications. The course concludes by teaching students the different testing strategies, how to work with Mock Objects, and how to effectively test Scala frameworks like Akka and Play.

Purpose
Learn how to effectively test Scala based applications.
Audience
Developers and Q/A Engineers responsible for testing Scala based applications.
Role
Q/A - Software Developer
Skill Level
Introduction
Style
Workshops
Duration
2 Days
Related Technologies
Scala | Testing

 

Productivity Objectives
  • Define TDD and why it's important
  • Identify the basic concepts of the SBT
  • Apply Java Standard Testing frameworks

What You'll Learn:

In the Test-Driven Development with Scala training course, you'll learn:
  • Introduction to Testing
    • What is Test Driven Design (TDD)?
    • Why TDD is important
  • Simple Build Tool (SBT) Basics
    • Basic concepts
    • Compare and contrast with Maven
    • How to create a Project in SBT
    • An overview of SBT Settings and Commands
    • How to manage SBT history
    • How to use Triggered Executions
    • How to Run Tests
  • ScalaTest
    • Install ScalaTest
    • Matchers in Scala Test
    • Exception Handling
    • Informers
    • Given When Then
    • Pending Tests
    • Ignoring Tests
    • Tagging Tests
  • Effectively Using Specifications
    • FunSpec
    • WordSpec
    • FeatureSpec
    • Free Spec
    • Word Spec
  • Effectively using Java Standard Testing frameworks
    • JUnit
    • TestNG
  • Creating fixtures to avoid copying code
  • Specs2
    • Installing Specs2
    • Matchers in Specs2
    • Creating Unit Specification
    • Creating Acceptance Specifications
    • Chain testing
    • Using Given When and Then
    • Use DataTables to do rigorous testing
    • How to tag tests
    • How to create fixtures to avoid copying code
  • Mocking
    • Difference between mocks stubs dummies and mocks
    • Using Easy Mock with Scala and ScalaTest
    • Using Mockito with Scala and Specs2
    • Mocking Difficult Constructs with ScalaMock
  • ScalaCheck
    • Why you need to use ScalaCheck now
    • Automated Testing
    • Creating and Constraining Properties
    • Grouping Properties
    • Using Built in Generators and Arbitrary
    • Creating Your Own Generators and Arbitrary
    • Integrating ScalaCheck with ScalaTest
    • Integrating ScalaCheck with Specs2
  • Scala Testing Integrations
    • Scala Testing in Akka
    • Scala Testing in Play
    • Scala Testing in Selenium
“I appreciated the instructor's technique of writing live code examples rather than using fixed slide decks to present the material.”

VMware

Dive in and learn more

When transforming your workforce, it's important to have expert advice and tailored solutions. We can help. Tell us your unique needs and we'll explore ways to address them.

Let's chat

By filling out this form and clicking submit, you acknowledge our privacy policy.