FunSuite

Testing in Scala (Frameworks, Code Coverage, Mocking, Matchers, and ScalaTest)

Reading Time: 5 minutes We will be covering the below concepts in this blog: Why we need testing Test Libraries How to set up ScalaTest Different frameworks in ScalaTest and how to use them Mocking  Matchers Plugins for Code Coverage Why we need testing: Firstly, as a good software developers it is important to use testing that is good and has good coverage. Testing is an essential part of Continue Reading

Generating, visiting and unit testing grammar using ANTLR4 with Java and Scala

Reading Time: 6 minutes “Quality is free, but only to those who are willing to pay heavily for it” – T. DeMarco Now unit testing is not that heavy to pay off so lets start the blog. In this blog we will be continuing the voyage to the kingdom of ANTLR4 RECAP In previous blog we discussed how to test whether a string is grammatically correct or not using Continue Reading

Testing Scala Applications with In-memory mongoDB

Reading Time: 2 minutes Is your test suite taking a large amount of time to run just because your methods need some database queries to be handled? Testing with In-memory databases can save a hell lot of time. In-memory database makes the queries readily available to methods in a matter of milliseconds. In case you are using mongoDB, this blog can help you run your test suite much faster Continue Reading