Unit Testing in Scala 3
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.
Author Name: Harit Himanshu
Author Description:
Harit Himanshu is a hands-on software professional with more than a decade of experience in building and shipping products at companies of small to large sizes. He has contributed in various domains such as Advertising, CleanTech, Security, and FinTech. He is passionate about writing clean testable code and prefers being lazy when coding. In his free time, he is found tinkering new technologies, learning new business domains, reading books, cooking, singing and investing his time with his wife o… more
There are no reviews yet.