Wrapping Up
Even though Scala has sensible static typing and quite a few errors will be caught at compile time, unit testing is still important. It can greatly help to get quick feedback that the evolving code continues to work as expected. You could use JUnit to test Scala code, but ScalaTest is a nice tool for testing both Scala code and Java code. In addition to providing fluency of tests, ScalaTest makes it quite easy to use the mocking libraries popular in Java.
We’ve come to the end of this journey and reached a beautiful shore. You’re now ready to apply the concepts you’ve learned. Enjoy Scala’s concise and expressive power as you begin to create real-world projects in Scala. I sincerely hope you benefit from this book and will be able ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access