-
The best code coverage for Scala
The best code coverage metric for Scala is statement coverage. Simple as that. It suits the typical programming style in Scala best. Scala is a chameleon and it can look like anything you wish, but very often more statements are written on a single line and conditional “if” statements are used rarely. In other words,…
-
With a little help from our friends
“How many bugs have your unit tests found? And why they didn’t find the one that’s currently killing our production? See? This proves that unit testing doesn’t work. It’s just a waste of money. My money.” said the boss. Of course not my boss. That’s actually a pretty valid point. How to prove that unit…
-
The Rule of Failed Integration Build
What to do if an integration build fails? By failing I mean either there is a compilation error or an aed test fails. The general rule in most of the teams that I worked with is that this situation should be treated with the highest priority. The developer who has caused this problem is responsible…
-
Sustainable Automated Testing
Have you ever had a feeling that aed testing is becoming overhead for the project? That the effort to keep them green seems to be higher than the added value? Then maybe what you do is integration testing and not unit testing. Unit testing over integration testing I had the following discussion last week: “Do you…
-
Reflection Against OOP Principles
What is so cool about the possibility to access private class members from outside using reflection? Everyone keeps asking you during job interviews what are the basic rules of object oriented programming. This is a mandatory knowledge to pass at least the first round. Encapsulation is one of them. Of course, of course. When you finally get…