Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Unit Testing in Scala

via Pluralsight

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
ScalaTest is a well-known choice for testing Scala projects. Write tests to provide evidence that the project works as expected. These tests also serve as a communication and learning tool for other developers and stakeholders in your organization.

ScalaTest is a popular choice to test Scala projects. It has been used by well-known open-source projects such as Akka. In this course, Unit Testing in Scala, you will learn how to test a Scala project using ScalaTest. First, you will test your codebase using Assertions and Matchers. Next, you will discover how to create Fixtures for your testing using various methods, and how to test for asynchronous code. Then, you will see how to mock complex object creation and test for behaviors, while also learning to create tags and apply them selectively to your tests so that you can run tests based on the tags. Finally, you will explore different ways of running a test written using ScalaTest library. When you are finished with this course, you will have all the required knowledge to plug ScalaTest into your projects and start testing with confidence.

Syllabus

  • Course Overview 1min
  • Setting up the Project 12mins
  • Writing the First Test 22mins
  • Working with Assertions 29mins
  • Performing Expressive Testing Using Matchers 44mins
  • Generating Data through Fixtures and Asynchronous Testing 18mins
  • Mocking and Tagging Your Tests 16mins

Taught by

Harit Himanshu

Reviews

Start your review of Unit Testing in Scala

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.