Since Ruby v.2.5.0 arrived there were a lot of talks about its features and improvements. But one thing left unattended. We’d like to fix this awkward moment and introduce you branch coverage feature in Ruby 2.5.0!
Why are we so happy about it? That’s a great news because in future, tools like simplecov will be able to report us exactly which branches of our code have been executed and which have not been.
At the moment, brunch coverage is the greatest feature introduced in Ruby 2.5.0. Having a test suite with branch coverage guarantees that you really consider all possible cases and execution flows of your code and reduces the possibility of bugs.
Find the examples here.